Metrics

Get active metrics list

Get the list of actively reporting metrics from a given time until now.

get/api/v1/metrics

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v1/metrics
  • Auth
    • API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
    • or OAuth 2
      Authorization code: /oauth2/v1/authorize
      Token URL: /oauth2/v1/token scopes: metrics_read

Query parameters

frominteger required

Seconds since the Unix epoch.

hoststring

Hostname for filtering the list of metrics returned. If set, metrics retrieved are those with the corresponding hostname tag.

tag_filterstring

Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Cannot be combined with other filters.

Response

OK

fromstring

Time when the metrics were active, seconds since the Unix epoch.

metricsstring[]

List of metric names.

Example response

{
  "from": "1571011200",
  "metrics": [
    "system.cpu.idle",
    "system.mem.free",
    "aws.ec2.cpuutilization"
  ]
}

Changes

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