Metrics

Get impact metrics configuration for the instance

Changed on

Enterprise feature

Gets all impact metrics configurations now associated with any feature flag.

get/api/admin/impact-metrics/config

Request

  • Base URL
    https://app.unleash-instance.example.com
  • URL
    https://app.unleash-instance.example.com/api/admin/impact-metrics/config
  • Auth
    • API key in header Authorization
    • or HTTP bearer

Response

impactMetricsConfigListSchema

Example response

{
  "configs": [
    {
      "id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
      "metricName": "unleash_counter_feature_toggle_usage_total",
      "timeRange": "day",
      "aggregationMode": "rps",
      "labelSelectors": {
        "environment": [
          "development"
        ],
        "project": [
          "default"
        ]
      },
      "source": "internal",
      "displayName": "feature_toggle_usage_total",
      "yAxisMin": "auto",
      "step": "15m",
      "title": "Feature Toggle Usage",
      "mode": "write"
    }
  ]
}

Changes

    • breaking

      removed the required property // from the response with the status

    • info

      api tag Metrics added

    • info

      api tag Unstable removed

    • info

      added the optional property // to the response with the status