Returns a list of label values for a provided label name
GET/v1/metrics/prometheus/api/v1/label/:label_name/values
Retrieves a list of all values associated with a specific label name, optionally filtered by time range and series selectors. Please ensure to change the region in the URL to match your account's region.
Request
Path Parameters
label_name stringrequired
The name of the label to retrieve values for.
Query Parameters
start string
Start timestamp, inclusive, as an RFC3339 or Unix timestamp. Optional.
end string
End timestamp, inclusive, as an RFC3339 or Unix timestamp. Optional.
match[] string[]
Series selector to narrow down the series from which to read the label values. Optional.
limit integer
Maximum number of label values to return. Optional.
Responses
- 200
- 400
- 500
List of label values.
- application/json
- Schema
- Example (from schema)
Schema
status string
Status of the request (e.g., success, fail).
data string[]
{
"status": "string",
"data": [
"string"
]
}
Invalid request parameters.
Internal server error.
Loading...