Skip to content

Commit 9ce4dde

Browse files
Update the dashboard to include code ranges (2xx, 4xx, 5xx)
1 parent 94c0404 commit 9ce4dde

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

grafana/provisioning/dashboards/aligned/aggregation_mode_gateway.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"uid": "prometheus"
107107
},
108108
"editorMode": "code",
109-
"expr": "sum(\n rate(api_response_code{statuscode=~\"400\"}[100m])\n)",
109+
"expr": "sum(\n rate(api_response_code{statuscode=~\"4..\"}[100m])\n)",
110110
"instant": false,
111111
"legendFormat": "__auto",
112112
"range": true,
@@ -200,7 +200,7 @@
200200
"uid": "prometheus"
201201
},
202202
"editorMode": "code",
203-
"expr": "api_response_code{statuscode=\"500\"}",
203+
"expr": "sum(\n rate(api_response_code{statuscode=~\"5..\"}[100m])\n)",
204204
"instant": false,
205205
"legendFormat": "__auto",
206206
"range": true,
@@ -294,7 +294,7 @@
294294
"uid": "prometheus"
295295
},
296296
"editorMode": "code",
297-
"expr": "success_response_count{}",
297+
"expr": "sum(\n rate(api_response_code{statuscode=~\"2..\"}[100m])\n)",
298298
"instant": false,
299299
"legendFormat": "__auto",
300300
"range": true,
@@ -305,21 +305,21 @@
305305
"type": "timeseries"
306306
}
307307
],
308-
"refresh": false,
308+
"refresh": "",
309309
"schemaVersion": 38,
310310
"style": "dark",
311311
"tags": [],
312312
"templating": {
313313
"list": []
314314
},
315315
"time": {
316-
"from": "now-30m",
316+
"from": "now-5m",
317317
"to": "now"
318318
},
319319
"timepicker": {},
320320
"timezone": "",
321-
"title": "New dashboard",
321+
"title": "Aggregation Mode",
322322
"uid": "a66a5480-6a60-4b87-9d29-4f0f446edafd",
323-
"version": 1,
323+
"version": 3,
324324
"weekStart": ""
325325
}

0 commit comments

Comments
 (0)