Query Prometheus exemplars
- POST GET /_prometheus/{index}/api/v1/query_exemplars
- POST GET /_prometheus/api/v1/query_exemplars
Get the exemplars of the series selected by a PromQL expression over a time range.
The endpoint mirrors the Prometheus /api/v1/query_exemplars 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/query_exemplars.
Responses
application/json