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
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.
Response
Sorted list of label names as strings. Always includes built-in labels like __name__ if any metric data exists.