Skip to content

Commit

Permalink
Merge pull request #112 from petracihalova/grafana-dashboard
Browse files Browse the repository at this point in the history
updated Grafana Dashboard for Turnpike - fixed 'Status code proportion' panel
  • Loading branch information
petracihalova authored Dec 14, 2023
2 parents b53ced8 + 1d94eeb commit e891435
Showing 1 changed file with 9 additions and 43 deletions.
52 changes: 9 additions & 43 deletions dashboards/grafana-dashboard-turnpike.configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ data:
"x": 0,
"y": 10
},
"id": 45,
"id": 46,
"options": {
"barRadius": 0,
"barWidth": 1,
Expand Down Expand Up @@ -534,46 +534,12 @@ data:
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum(rate(requests_total{namespace=\"$Namespace\", endpoint=\"5000-tcp\", policy_status_code=~\"2..\"}[5m])) / sum(rate(requests_total{endpoint=\"5000-tcp\"}[5m]))",
"legendFormat": "2xx",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum(rate(requests_total{namespace=\"$Namespace\", endpoint=\"5000-tcp\", policy_status_code=~\"3..\"}[5m])) / sum(rate(requests_total{endpoint=\"5000-tcp\"}[5m]))",
"hide": false,
"legendFormat": "3xx",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum(rate(requests_total{namespace=\"$Namespace\", endpoint=\"5000-tcp\", policy_status_code=~\"4..\"}[5m])) / sum(rate(requests_total{endpoint=\"5000-tcp\"}[5m]))",
"hide": false,
"legendFormat": "4xx",
"range": true,
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum(rate(requests_total{namespace=\"$Namespace\", endpoint=\"5000-tcp\", policy_status_code=~\"5..\"}[5m])) / sum(rate(requests_total{endpoint=\"5000-tcp\"}[5m]))",
"expr": "sum(rate(requests_total{namespace=\"$Namespace\", endpoint=\"5000-tcp\"}[5m])) by (policy_status_code)",
"hide": false,
"legendFormat": "5xx",
"interval": "",
"legendFormat": "__auto",
"range": true,
"refId": "D"
"refId": "A"
}
],
"title": "Status code proportion",
Expand Down Expand Up @@ -1099,7 +1065,7 @@ data:
"h": 8,
"w": 16,
"x": 0,
"y": 19
"y": 22
},
"id": 31,
"interval": "",
Expand Down Expand Up @@ -1215,7 +1181,7 @@ data:
"h": 8,
"w": 16,
"x": 0,
"y": 27
"y": 30
},
"id": 32,
"interval": "",
Expand Down Expand Up @@ -1331,7 +1297,7 @@ data:
"h": 8,
"w": 16,
"x": 0,
"y": 35
"y": 38
},
"id": 33,
"interval": "",
Expand Down Expand Up @@ -1817,7 +1783,7 @@ data:
"timezone": "",
"title": "Turnpike Operation",
"uid": "TMJw0JC7k",
"version": 83,
"version": 84,
"weekStart": ""
}
kind: ConfigMap
Expand Down

0 comments on commit e891435

Please sign in to comment.