Tag Configuration Cardinality Estimator

GET {{baseUrl}}/api/v2/metrics/:metric_name/estimate?filter[groups]=<string>&filter[hours_ago]=<integer>&filter[num_aggregations]=<integer>&filter[pct]=<boolean>&filter[timespan_h]=<integer>

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]stringThe number of hours of look back (from now) to estimate cardinality with.
filter[num_aggregations]stringThe number of aggregations that a count, rate, or gauge metric is configured to use. Max number of aggregation combos is 9.
filter[pct]stringA boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators.
filter[timespan_h]stringA window, in hours, from the look back to estimate cardinality with.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:{&quot;attributes&quot;:{&quot;estimate_type&quot;:&quot;count_or_gauge&quot;,&quot;estimated_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;estimated_output_series&quot;:&quot;\u003clong\u003e&quot;},&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;metric_cardinality_estimate&quot;}}