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.
Optional series selectors to filter which label names are returned. When provided, only label names that appear on series matching at least one of these selectors are included. Multiple selectors are combined with logical OR.
Start timestamp to limit the time range considered. Only label
names from series with samples within [start, end] are
returned. RFC 3339 or Unix seconds.
End timestamp to limit the time range considered. RFC 3339 or Unix seconds.
Maximum number of label names to return. A value of 0 disables
the limit.
x >= 0Sorted 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.
success, error Alphabetically sorted list of label names. Includes built-in
labels like __name__ if any metric data exists.
Human-readable error message (present when status is error).
Error category (present when status is error).