Returns the values of a label in a metrics account by ID
GET/v1/metrics/prometheus/:accountId/api/v1/label/:label_name/values
Runs against the metrics account given by accountId instead of the API token's own account, so it can be called with the API token of a logs account. The token's account must be one of the metrics account's authorized accounts, otherwise the request returns 401. To list the metrics accounts and their authorizedAccountsIds, use Get a list of all metrics accounts.
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
ID of the metrics account to query.
The name of the label to retrieve values for.
Query Parameters
Start timestamp, inclusive, as an RFC3339 or Unix timestamp. Optional.
End timestamp, inclusive, as an RFC3339 or Unix timestamp. Optional.
Series selector to narrow down the series from which to read the label values. Optional.
Maximum number of label values to return. Optional.
Responses
- 200
- 400
- 401
- 500
List of label values.
- application/json
- Schema
- Example (from schema)
Schema
Status of the request (e.g., success, fail).
{
"status": "string",
"data": [
"string"
]
}
Invalid request parameters.
The API token's account is not an authorized account of the metrics account accountId.
Internal server error.