Tag Configuration Cardinality Estimator

GET {{baseUrl}}/api/v2/metrics/:metric_name/estimate

Returns the estimated cardinality for a metric with a given tag, percentile and number of aggregations configuration using Metrics without Limitsâ„¢.

Request Params

KeyDatatypeRequiredDescription
filter[groups]stringFiltered tag keys that the metric is configured to query with.
filter[hours_ago]numberThe number of hours of look back (from now) to estimate cardinality with. Estimates are based on historical data, and unspecified fields default to the minimum 49 hours.
filter[num_aggregations]numberThe number of aggregations that a count, rate, or gauge metric is configured to use. Max number of aggregation combos is 9.
filter[pct]booleanA boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators.
filter[timespan_h]numberA window, in hours, from the look back to estimate cardinality with.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"data":{"attributes":{"estimate_type":"distribution","estimated_at":"2022-04-27T09:48:37.463835Z","estimated_output_series":50},"id":"test.metric.latency","type":"metric_cardinality_estimate"}}