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
Key | Datatype | Required | Description |
---|---|---|---|
filter[groups] | string | Filtered tag keys that the metric is configured to query with. | |
filter[hours_ago] | number | The 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] | number | The number of aggregations that a count , rate , or gauge metric is configured to use. Max number of aggregation combos is 9. | |
filter[pct] | boolean | A boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators. | |
filter[timespan_h] | number | 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":"distribution","estimated_at":"2022-04-27T09:48:37.463835Z","estimated_output_series":50},"id":"test.metric.latency","type":"metric_cardinality_estimate"}}