List label names
Return the sorted list of all label names present in the database. Optionally filtered by series selectors and/or a time range.
When match[] selectors are provided, only label names from series
matching those selectors are returned. When start and/or end are
provided, only series with samples in that time range are considered.
Also accepts POST with a application/x-www-form-urlencoded body
containing the same parameters.
Query Parameters
Response
Sorted list of label names as strings. Always includes built-in
labels like __name__ if any metric data exists.
Response for the label names endpoint (/api/v1/labels). On success,
data contains a sorted array of label name strings.