Skip to main content
SLO & Service Quality/SLO
PUTSLOSince 1.0SynchronousAuth Required

ConfigureQueryTimeout

Configure the VictoriaMetrics query timeout and stale cache fallback policy.

Execution Availability

Try It Out

Submit a mock request using the current auth context and example-driven inputs.

Request Inputs

Body Fields

  • configObjectRequired

    New query timeout and fallback configuration to apply.

    • vmQueryTimeoutMsString

      VictoriaMetrics query timeout in milliseconds before fallback is triggered.

      Example: 5000

    • staleDataTtlSecsString

      Time-to-live in seconds for stale cached data to be considered valid.

      Example: 300

    • fallbackModeString

      Fallback strategy when VM is unavailable: stale_cache | last_known_good | conservative_estimate.

      Example: stale_cache

Responses

200 OK

On success, this API returns an empty JSON object {}.

Endpoint

PUT/api/v1/slo/config/query-timeout

/api/v1/slo/config/query-timeout

Operation ID

ConfigureQueryTimeout

Permalink

Request Example

curl -X PUT '{host}/api/v1/slo/config/query-timeout' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"config":{"vmQueryTimeoutMs":5000,"staleDataTtlSecs":300,"fallbackMode":"stale_cache"}}'

Response Example

200
{}

Change History

This API has no change history records yet.

View all change history