Returns list of Exemplars

GET {{baseUrl}}/query_exemplars?query=irure&start=irure&end=irure

This is experimental and might change in the future. The following endpoint returns a list of exemplars for a valid PromQL query for a specific time range

Request Params

KeyDatatypeRequiredDescription
querystring(Required) Prometheus expression query string.

Example: ?query=test_exemplar_metric_total | | start | string | | Start timestamp.

Example: &start=2020-09-14T15:22:25.479Z | | end | string | | End timestamp.

Example: &end=020-09-14T15:23:25.479Z |

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"status":"success","data":[{"seriesLabels":{"__name__":"test_exemplar_metric_total","instance":"localhost:8090","job":"prometheus","service":"bar"},"exemplars":[{"labels":{"traceID":"EpTxMJ40fUus7aGY"},"value":"6","timestamp":1600096945.479}]},{"seriesLabels":{"__name__":"test_exemplar_metric_total","instance":"localhost:8090","job":"prometheus","service":"foo"},"exemplars":[{"labels":{"traceID":"Olp9XHlq763ccsfa"},"value":"19","timestamp":1600096955.479},{"labels":{"traceID":"hCtjygkIHwAN9vs4"},"value":"20","timestamp":1600096965.489}]}]}