Metrics

Execute Prometheus query.

post

Executes a Prometheus query (instant or range) against the metrics server. Accepts either a direct 'promql' string or components ('pipeline', 'filters', 'conditions', 'subPipelines') to build the query.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Body
Endstring · date-timeOptional
FiltersstringOptional
PromqlstringOptional
QueryTypestring · enumOptionalPossible values:
Startstring · date-timeOptional
StepstringOptional
Responses
200Success

No content

post
/api/metrics/query

No content

GetMetricValues retrieves metric values based on the provided request parameters.

post
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Body
Endstring · date-timeOptional
FilterstringOptional
KeystringOptional
Limitinteger · uint32Optional
NamestringOptional
Startstring · date-timeOptional
Responses
200Success

No content

post
/api/metrics/values

No content

GetKeys retrieves metric keys based on the provided request parameters.

post
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Body
endstring · date-timeOptional

End specifies the end time for the metric keys query.

filterstringOptional

Filter specifies a search filter to apply to the metric keys.

limitinteger · uint32Optional

Limit specifies the maximum number of results to return.

namestringOptional

Name specifies the metric name to get keys for.

startstring · date-timeOptional

Start specifies the start time for the metric keys query.

Responses
200Success

No content

post
/api/metrics/keys

No content

GetNames retrieves metric names based on the provided request parameters.

post
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Body
endstring · date-timeOptional

End specifies the end time for the metric names query.

filterstringOptional

Filter specifies a search filter to apply to the metric names.

limitinteger · uint32Optional

Limit specifies the maximum number of results to return.

requiredstring[]Optional

Required specifies a list of metric names that must be included in the results.

startstring · date-timeOptional

Start specifies the start time for the metric names query.

Responses
200Success

No content

post
/api/metrics/names

No content

Last updated