get_datasource_health
Check the health status of a Grafana datasource by providing the connection name and datasource UID. Returns health information as JSON, or a structured error if the datasource is not found.
Instructions
Run the health check for a specific datasource.
Args: connection_name: Name of the Grafana connection datasource_uid: UID of the datasource to probe
Returns:
JSON string with health information reported by Grafana.
If Grafana returns 404, the tool returns a structured
unsupported or not_found result instead of a raw error.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"connection_name": "<connection_name>",
"datasource_uid": "<datasource_uid>"
},
"name": "get_datasource_health"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datasource_uid | Yes | ||
| connection_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |