Skip to main content
SLO & Service Quality/SLO

GetVMQueryHealth

Get the health status and latency metrics for the VictoriaMetrics query backend.

GET/api/v1/slo/query-health

Operation ID

GetVMQueryHealth

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

This API requires no request parameters.

Responses

200 OK
200 OK

On success, this API returns the following response structure.

  • vmAvailable
    Boolean

    Whether the VictoriaMetrics backend is reachable and responding.

    Example: true

  • avgQueryLatencyMs
    Long

    Average query latency in milliseconds over recent queries.

    Example: 45.2

  • p99LatencyMs
    Long

    99th percentile query latency in milliseconds.

    Example: 210

  • slowQueriesLast1h
    Integer

    Number of queries that exceeded the timeout threshold in the last hour.

    Example: 3

  • circuitBreakerState
    String

    Current circuit breaker state: closed | open | half-open.

    Example: closed