Metrics

List distinct metric volumes by metric name

View hourly average cardinality for the given metric name over the look back period. For Metric Name Pricing customers, view total point volume for the given metric name over the look back period.

get/api/v2/metrics/{metric_name}/volumes

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/metrics/{metric_name}/volumes
  • 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 3,600 (1 hour), maximum value is 2,592,000 (1 month).

Response

Success

Example response

{
  "data": {
    "attributes": {
      "distinct_volume": 10
    },
    "id": "test.metric.latency",
    "type": "distinct_metric_volumes"
  }
}

Changes

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