Skip to content

Commit f27f13d

Browse files
committed
Use sum by for counter metrics
1 parent 799ba9d commit f27f13d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

overlays/monitoring/configs/dashboards/shinyproxy-usage.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@
10071007
},
10081008
"editorMode": "code",
10091009
"exemplar": true,
1010-
"expr": "max by (spec_id) (round(increase(authFailed_total{namespace=~\"$namespace\",shinyproxy_realm=~\"$realm\",shinyproxy_instance=~\"$instance\"}[$__rate_interval])))",
1010+
"expr": "sum by (spec_id) (round(increase(authFailed_total{namespace=~\"$namespace\",shinyproxy_realm=~\"$realm\",shinyproxy_instance=~\"$instance\"}[$__rate_interval])))",
10111011
"interval": "",
10121012
"legendFormat": "__auto",
10131013
"queryType": "randomWalk",
@@ -1104,7 +1104,7 @@
11041104
},
11051105
"editorMode": "code",
11061106
"exemplar": true,
1107-
"expr": "max by (spec_id) (round(increase(startFailed_total{namespace=~\"$namespace\",shinyproxy_realm=~\"$realm\",shinyproxy_instance=~\"$instance\"}[$__rate_interval])))",
1107+
"expr": "sum by (spec_id) (round(increase(startFailed_total{namespace=~\"$namespace\",shinyproxy_realm=~\"$realm\",shinyproxy_instance=~\"$instance\"}[$__rate_interval])))",
11081108
"interval": "",
11091109
"legendFormat": "{{spec_id}}",
11101110
"queryType": "randomWalk",
@@ -1201,7 +1201,7 @@
12011201
},
12021202
"editorMode": "code",
12031203
"exemplar": true,
1204-
"expr": "max by (spec_id) (round(increase(appCrashes_total{namespace=~\"$namespace\",shinyproxy_realm=~\"$realm\",shinyproxy_instance=~\"$instance\"}[$__rate_interval])))",
1204+
"expr": "sum by (spec_id) (round(increase(appCrashes_total{namespace=~\"$namespace\",shinyproxy_realm=~\"$realm\",shinyproxy_instance=~\"$instance\"}[$__rate_interval])))",
12051205
"interval": "",
12061206
"legendFormat": "{{spec_id}}",
12071207
"queryType": "randomWalk",

0 commit comments

Comments
 (0)