Returns label names

GET {{baseUrl}}/labels?start=irure&end=irure&match[]=irure

The following endpoint returns a list of label names

The data section of the JSON response is a list of string label names.


NOTE: These API endpoints may return metadata for series for which there is no sample within the selected time range, and/or for series whose samples have been marked as deleted via the deletion API endpoint. The exact extent of additionally returned series metadata is an implementation detail that may change in the future.


Request Params

KeyDatatypeRequiredDescription
startstringStart timestamp. Optional.
endstringEnd timestamp. Optional.
match[]stringRepeated series selector argument that selects the series from which to read the label values. Optional.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"status":"success","data":["__name__","call","code","config","dialer_name","endpoint","event","goversion","handler","instance","interval","job","le","listener_name","name","quantile","reason","role","scrape_job","slice","version"]}