prometheus/prometheus

Add match[] param to /api/v1/status/tsdb API

Offen

#12.389 geöffnet am 24.05.2023

 (13 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Go (10.408 Forks)batch import
component/tsdbhelp wantedkind/featurepriority/P3

Repository-Metriken

Stars
 (64.042 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Proposal

TSDB status API https://prometheus.io/docs/prometheus/latest/querying/api/#tsdb-stats returns various cardinality statistics. https://github.com/prometheus/prometheus/issues/11945 topN param got added to return more info we need (default is 10).

However, if users want to check the cardinality of a specifc target or job, if it is not at high cardinality we cannot include those information in response.

The proposal is to add match[]=<series_selector> param similar to the GetSeries API and we can look at cardinality of specific series/jobs.

Contributor Guide