provider Metrics GET
/api/v2/metrics/{metric_name}/estimate @utdk/datadog
/api/v2/metrics/{metric_name}/estimate Tag Configuration Cardinality Estimator
Returns the estimated cardinality for a metric with a given tag, percentile and number of aggregations configuration using Metrics without Limits™.
- metric_name path required
- The name of the metric.
- string
- filter[groups] query
- Filtered tag keys that the metric is configured to query with.
- string
- filter[hours_ago] query
- The number of hours of look back (from now) to estimate cardinality with. If unspecified, it defaults to 0 hours.
- integer
- filter[num_aggregations] query
- Deprecated. Number of aggregations has no impact on volume.
- integer
- filter[pct] query
- A boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators.
- boolean
- filter[timespan_h] query
- A window, in hours, from the look back to estimate cardinality with. The minimum and default is 1 hour.
- 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.
Code snippet
Updates live as you fill in the form above.
TypeScript
import datadog from '@utdk/datadog';
await datadog.estimatemetricsoutputseries()