Skip to content

Reference

Health

The health endpoints of the HTTP API.

GET /health

List dashboards with health problems, or the health of given dashboards.

Anyone with a role can call this endpoint. It lists every dashboard, in folders the caller can see, with at least one problem. no_data, query_failed and variable_failed come from the last health check of the dashboard: an hourly job checks each dashboard about once a day, and again on the next run when its last check found a query_failed or variable_failed problem or it was saved since, oldest check first, running every panel and variable query of its latest version over the last 7 days with no viewer. duplicate_title means another dashboard in the same folder has the same title, compared case-insensitively, and unopened means nobody opened the dashboard in the last 90 days, counting from its creation when nobody ever did; both are computed on every read. A dashboard whose queries read the viewer (${__user.*}) is not checked and has skipped set to depends_on_viewer. Dashboards are ranked: 0 with a query_failed or variable_failed problem, 1 with no_data, 2 with duplicate_title, 3 with only unopened. The list is ordered by rank, then by last_viewed_at newest first with never-opened dashboards last, then by title; a kind filter keeps each dashboard’s rank, so the same order holds inside one kind. next_cursor pages through that order; a cursor from a server before this order answers 400 invalid_request and the client restarts from the first page. The first page, sent without cursor, carries summary: counts of dashboards, not problems, over every dashboard in folders the caller can see, narrowed by folder_id and never by kind; later pages have summary null. Each dashboard carries repair, its latest health repair (a revision whose prompt starts as POST /health/repairs writes it) whatever its age, or null when it never had one. job is the state of the health job. With dashboard_id, only those dashboards are listed, each one the caller can see whether or not it has a problem: a checked dashboard with no problem comes back with empty problems, and one never checked has state unchecked with null checked_at and checked_version; kind still narrows the list to dashboards with a problem of that kind. summary is null on every page when dashboard_id is given.

Parameters

Name In Type Description
folder_id query string (uuid) Only dashboards in this folder; a folder the caller cannot see answers 404 not_found.
dashboard_id query array of string (uuid) Only these dashboards, repeated up to 50 times, including those without a problem; more than 50 values, or a value that is not a UUID, answers 400 invalid_request, and a repeated id counts once. An id that does not exist, or is in a folder the caller cannot see, is absent from the answer and never an error. At most 50 items.
kind query HealthProblemKind Only dashboards with this kind of problem, and only problems of this kind.
limit query integer Between 1 and 100. Default 50.
cursor query string

Responses

Status Description Body
200 One page of dashboards with problems, or of the requested dashboards. HealthList
400 The request is malformed or fails validation. Error
401 Authentication is missing or invalid. Error
403 The caller is not allowed to perform the request; a role that is too low is code forbidden_role. Error
404 The resource does not exist, or the caller cannot see it; the two are never told apart. Error
500 The server failed to handle the request. Error

POST /health/repairs

Queue the agent to repair the failing panels and variables the health check found.

Editors and Admins can call this endpoint. Each dashboard gets one ordinary revision (intent apply) whose prompt starts “Repair the panels and variables the health check found failing” and then names each panel and variable with a no_data, query_failed or variable_failed problem from the last check. A dashboard is skipped with a reason: active when a revision is already queued or running on it, nothing_to_repair when its last check found no failing panel or variable or was of an older version than the latest, not_found when it does not exist or is in a folder the caller cannot see, forbidden_role when the caller cannot edit it, provisioned when it is a starter dashboard the server keeps current with each release, and queue_full when the caller already has 20 health repairs queued or running. Without a configured LLM provider the endpoint answers 503 agent_unavailable.

Request body

application/json, required.

Field Type Description
dashboard_ids (required) array of string (uuid) At most 50 items.

Responses

Status Description Body
202 The repairs that were queued and the dashboards that were skipped. RepairsQueued
400 The request is malformed or fails validation. Error
401 Authentication is missing or invalid. Error
403 The caller is not allowed to perform the request; a role that is too low is code forbidden_role. Error
413 The request body exceeds the size limit. Error
500 The server failed to handle the request. Error
503 No LLM provider is configured (agent_unavailable). Error

POST /health/run

Start a health run now.

Admins only. The run starts in the background and checks the dashboards that are due, as the hourly run does; when a run is already going, nothing more starts. Read job from GET /health to follow it.

Responses

Status Description Body
202 The run is starting.
401 Authentication is missing or invalid. Error
403 The caller is not allowed to perform the request; a role that is too low is code forbidden_role. Error

Generated from api/openapi.yaml at c770e5e0. Report a problem.

Reading this as an agent? Every page is in /llms.txt and /llms-full.txt as plain text.

/observeOpen source under Apache-2.0.Grafana is a trademark of Grafana Labs. Elasticsearch and Kibana are trademarks of Elasticsearch B.V. OpenSearch is a trademark of LF Projects, LLC. SlashObserve is not affiliated with or endorsed by any of them.

Search pages and headings.