Returns a list of label names
GET/v1/metrics/prometheus/api/v1/labels
Retrieve a list of all label names optionally filtered by a time range and series selectors. Please ensure to change the region in the URL to match your account's region.
Request
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 names. Optional.
limit integer
Maximum number of label names to return. Optional.
Responses
- 200
- 400
- 500
List of label names.
- 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...