mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
grafana metrics dashboard: use correct grafana http request metrics (#80338)
grafana's metrics exporter does not provide a metric called "http_request_total"; fix the dashboard to use the actually existing "grafana_http_request_duration_seconds_count"
This commit is contained in:
parent
f9dcc9ff90
commit
a9c376db1d
@ -543,10 +543,10 @@
|
||||
"pluginVersion": "8.1.0-pre",
|
||||
"targets": [
|
||||
{
|
||||
"expr": "sum by (statuscode) (irate(http_request_total{job='grafana'}[5m]))",
|
||||
"expr": "sum by (status_code) (irate(grafana_http_request_duration_seconds_count[5m]))",
|
||||
"format": "time_series",
|
||||
"intervalFactor": 3,
|
||||
"legendFormat": "{{statuscode}}",
|
||||
"legendFormat": "{{status_code}}",
|
||||
"refId": "B",
|
||||
"step": 15,
|
||||
"target": "dev.grafana.cb-office.alerting.active_alerts"
|
||||
@ -735,7 +735,7 @@
|
||||
],
|
||||
"targets": [
|
||||
{
|
||||
"expr": "sort(topk(8, sum by (handler) (http_request_total{job=\"grafana\"})))",
|
||||
"expr": "sort(topk(8, sum by (handler) (grafana_http_request_duration_seconds_count)))",
|
||||
"format": "time_series",
|
||||
"instant": true,
|
||||
"intervalFactor": 10,
|
||||
@ -1183,5 +1183,5 @@
|
||||
"timezone": "",
|
||||
"title": "Grafana metrics",
|
||||
"uid": "isFoa0z7k",
|
||||
"version": 2
|
||||
"version": 3
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user