provider Metrics GET /api/v2/metrics/{metric_name}/all-tags
@utdk/datadog /api/v2/metrics/{metric_name}/all-tags
List tags by metric name
View indexed and ingested tags for a given metric name. Results are filtered by the `window[seconds]` parameter, which defaults to 14400 (4 hours).
metric_name path required
The name of the metric.
string
window[seconds] query
The number of seconds of look back (from now) to query for tag data. Default value is 14400 (4 hours), minimum value is 14400 (4 hours).
integer
filter[tags] query
Filter results to tags from data points that have the specified tags. For example, `filter[tags]=env:staging,host:123` returns tags only from data points with both `env:staging` and `host:123`.
string
filter[match] query
Filter returned tags to those matching a substring. For example, `filter[match]=env` returns tags like `env:prod`, `environment:staging`, etc.
string
filter[include_tag_values] query
Whether to include tag values in the response. Defaults to true.
boolean
filter[allow_partial] query
Whether to allow partial results. Defaults to false.
boolean
page[limit] query
Maximum number of results to return.
integer

Try it

Authentication
Configure credentials for Datadog API V2 Collection
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

listtagsbymetricname
GET/api/v2/metrics/{metric_name}/all-tags
View indexed and ingested tags for a given metric name. Results are filtered by the `window[seconds]` parameter, which defaults to 14400 (4 hours).

Parameters

required

The name of the metric.

The number of seconds of look back (from now) to query for tag data. Default value is 14400 (4 hours), minimum value is 14400 (4 hours).

Filter results to tags from data points that have the specified tags. For example, `filter[tags]=env:staging,host:123` returns tags only from data points with both `env:staging` and `host:123`.

Filter returned tags to those matching a substring. For example, `filter[match]=env` returns tags like `env:prod`, `environment:staging`, etc.

Whether to include tag values in the response. Defaults to true.

Whether to allow partial results. Defaults to false.

Maximum number of results to return.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import datadog from '@utdk/datadog';

await datadog.listtagsbymetricname({
  "page[limit]": 1000000
})