Query checker
The Query checker feature allows Nobl9 users to validate whether their newly created SLOs will work correctly. If an SLO passes validation, it will start collecting SLI data immediately. Otherwise, the Query checker notifies about an error, so you can fix issues with connection or query, and get your SLOs going.
Scope of support
Query checker is available for the following data sources connected using the direct method:
Assumptions and limitations
Assumptions for verifying connection
Nobl9 tests the connection by calling the data source's API and verifying the connection status, usually through the HTTP response codes received from the data sources.
Limitations of verifying query
This feature aims to verify the data source's response rather than validate the underlying syntax of the query. Nobl9 tests the query by calling the underlying data source API and verifying the result.
There are two possible outcomes of the verification:
-
A query is marked as valid: the request has succeeded.
cautionThe query will be marked as valid even when the response is empty.
-
A query is marked as invalid: the data source's connection can't be established, or the API call returns error (usually with the HTTP status code different from
200
).
When does the verification occur?
Nobl9 triggers verifying connection and query
upon the following:
- SLO with a new query creation.
- Updates to queries in existing SLOs.
It creates a new indicator entry in the database, triggering validation. - Updates to the data source’s direct connection credentials.
Only queries (indicators) marked as invalid are re-validated.
User experience
Depending on the selected metric type, the query checker returns different information.
After you create an SLO, Nobl9 automatically begins verification. Your SLO features the following statuses:
- On the SLO grid: Verifying connection and query
- In the SLO details: Waiting for the connection and query verification results
Upon successful check, Nobl9 automatically proceeds to the importing data
and calculating
statuses in the SLO details.
The charts display Importing data.
Wait until the process has finished until data is processed and calculated.
When the check is unsuccessful, Nobl9 displays the Connection or query error status instead of the charts. The message includes the link to the error log for the metric that failed verification.
Click View error log to learn what's wrong and view the Last Error Message returned by your data source:
Click Edit Data Source to fix its configuration or Edit SLO Query to fix the query.
While failed verification for threshold metrics returns the error with your threshold query, the error log for the ratio metric can return the following:
- Good and total queries error.
- Good query error.
- Total query error.