Metrics

List active tags and aggregations

List tags and aggregations that are actively queried on dashboards, notebooks, monitors, the Metrics Explorer, and using the API for a given metric name.

get/api/v2/metrics/{metric_name}/active-configurations

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/metrics/{metric_name}/active-configurations
  • Auth
    API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY

Path parameters

metric_namestring required

The name of the metric.

Query parameters

window[seconds]integer

The number of seconds of look back (from now). Default value is 604,800 (1 week), minimum value is 7200 (2 hours), maximum value is 2,630,000 (1 month).

Response

Success

Example response

{
  "data": {
    "attributes": {
      "active_aggregations": [
        {
          "space": "sum",
          "time": "sum"
        },
        {
          "space": "sum",
          "time": "count"
        }
      ],
      "active_tags": [
        "app",
        "datacenter"
      ]
    },
    "id": "test.metric.latency",
    "type": "actively_queried_configurations"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.