Skip to content

Commit cbcc611

Browse files
Allow dashboards to show gRPC codes as labels (#1098)
Signed-off-by: Yuri Nikolic <[email protected]>
1 parent a8de721 commit cbcc611

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

grafana-builder/grafana.libsonnet

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@
430430
'3xx': '#6ED0E0',
431431
'4xx': '#EF843C',
432432
'5xx': '#E24D42',
433+
OK: '#7EB26D',
433434
success: '#7EB26D',
434435
'error': '#E24D42',
435436
cancel: '#A9A9A9',
@@ -441,7 +442,7 @@
441442
sum by (status) (
442443
label_replace(label_replace(rate(%s[$__rate_interval]),
443444
"status", "${1}xx", "%s", "([0-9]).."),
444-
"status", "${1}", "%s", "([a-z]+)"))
445+
"status", "${1}", "%s", "([a-zA-Z]+)"))
445446
||| % [selector, statusLabelName, statusLabelName],
446447
format: 'time_series',
447448
intervalFactor: 2,

0 commit comments

Comments
 (0)