Get Prometheus label values
Get the sorted deduplicated values of one label on the matching time series.
Label names can use the OpenMetrics U__ encoding for characters that are not valid in Prometheus label names.
An unknown label returns an empty list.
The endpoint mirrors the Prometheus /api/v1/label/{name}/values endpoint.
Required privileges
Index
read
Path parameters
-
indexstringoptional -
An index expression that restricts which indices are considered, for example
metrics-generic.prometheus-*. If you omit it, the default expressionmetrics-*is used. Only indices withindex.mode: time_seriesare considered.Leave it out to use
/_prometheus/api/v1/label/{name}/values.