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
Key | Datatype | Required | Description |
---|---|---|---|
filter[groups] | string | Filtered tag keys that the metric is configured to query with. | |
filter[hours_ago] | string | The number of hours of look back (from now) to estimate cardinality with. | |
filter[num_aggregations] | string | The number of aggregations that a count , rate , or gauge metric is configured to use. Max number of aggregation combos is 9. | |
filter[pct] | string | A boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators. | |
filter[timespan_h] | string | A window, in hours, from the look back to estimate cardinality with. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"data":{"attributes":{"estimate_type":"count_or_gauge","estimated_at":"\u003cdateTime\u003e","estimated_output_series":"\u003clong\u003e"},"id":"\u003cstring\u003e","type":"metric_cardinality_estimate"}}