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.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Body

QueryRequest represents a request to query metrics

Endstring · date-timeOptional

End time for the query

FiltersstringOptional

GCQL filters to apply

PromqlstringOptional

Direct PromQL query string

QueryTypestring · enumOptional

Query type: either "range" or "instant" range MetricsQueryTypeRange instant MetricsQueryTypeInstant

Possible values:
Startstring · date-timeOptional

Start time for the query

StepstringOptional

Step duration for range queries (e.g., "1m", "5m")

Responses
chevron-right
200Success

No content

post
/api/metrics/query

No content

GetMetricValues retrieves metric values based on the provided request parameters.

post
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Body
endstring · date-timeOptional
filterstringOptional
keystringOptional
limitinteger · uint32Optional
namestringOptional
startstring · date-timeOptional
Responses
chevron-right
200Success

No content

post
/api/metrics/values

No content

GetKeys retrieves metric keys based on the provided request parameters.

post
chevron-right
lockRequired 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
chevron-right
200Success

No content

post
/api/metrics/keys

No content

GetNames retrieves metric names based on the provided request parameters.

post
chevron-right
lockRequired 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
chevron-right
200Success

No content

post
/api/metrics/names

No content

Last updated