Grafana SLIs¶
This page documents Service Level Indicators (SLIs) for monitoring the health of Grafana. To set up Service Level Objectives (SLOs), see Set up SLOs with Sloth.
These metrics are recommended as Service Level Indicators for Grafana.
The slo_group label¶
Grafana’s HTTP request metrics include a slo_group label that Grafana Labs uses internally to classify endpoints by their service level tier. When building SLIs, filter on this label to exclude endpoints that are intentionally not covered by any SLO:
|
Meaning |
|---|---|
|
Default for most handlers; expected to respond quickly |
|
Handlers that may take longer to respond |
|
Proxy and downstream handlers; high availability but no latency guarantees |
|
Experimental or unstable handlers not covered by the standard SLO |
|
Handlers where errors are expected (for example, WebSocket connections); exclude from SLIs |
Use slo_group!="none" in your SLI queries to exclude the none group.
HTTP API¶
Metric |
Type |
Description |
|---|---|---|
|
Histogram |
HTTP request latency by handler, method, status code, and |
|
Gauge |
Number of HTTP requests currently being served |
|
Counter |
API responses by HTTP status code |
|
Counter |
Page responses by HTTP status code |
|
Counter |
Proxy responses by HTTP status code |
Datasource health¶
Metric |
Type |
Description |
|---|---|---|
|
Histogram |
Datasource request latency by datasource, type, method, and status code |
|
Counter |
Datasource requests by datasource, type, method, and status code |
|
Gauge |
Number of datasource requests currently in flight |
Database¶
Metric |
Type |
Description |
|---|---|---|
|
Gauge |
Number of database connections currently in use |
|
Gauge |
Number of idle database connections |
|
Counter |
Total number of times a request waited for a database connection |
|
Gauge |
Total time blocked waiting for a database connection |
Alerting¶
Metric |
Type |
Description |
|---|---|---|
|
Gauge |
Number of active alerts |
|
Gauge |
Number of alerts by state in the scheduler |
|
Gauge |
Number of alert rules considered for evaluation at the next tick |
|
Summary |
Alert rule evaluation execution time |
|
Summary |
Alert notification send latency |
Plugins¶
Metric |
Type |
Description |
|---|---|---|
|
Histogram |
Plugin request duration by endpoint, plugin ID, and status |
|
Counter |
Plugin requests by endpoint, plugin ID, and status |
Rendering¶
Metric |
Type |
Description |
|---|---|---|
|
Gauge |
Number of rendering requests currently queued |