Returns a list of label names using POST
POST/v1/metrics/prometheus/api/v1/labels
Submit parameters in the request body using URL-encoded form parameters to retrieve a list of label names. Please ensure to change the region in the URL to match your account's region.
Request
- application/x-www-form-urlencoded
Body
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
Successful retrieval 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...