Skip to content

Commit

Permalink
Allow dashboards to show gRPC codes as labels (#1098)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com>
  • Loading branch information
duricanikolic authored Nov 6, 2023
1 parent a8de721 commit cbcc611
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grafana-builder/grafana.libsonnet
Original file line number Diff line number Diff line change
@@ -430,6 +430,7 @@
'3xx': '#6ED0E0',
'4xx': '#EF843C',
'5xx': '#E24D42',
OK: '#7EB26D',
success: '#7EB26D',
'error': '#E24D42',
cancel: '#A9A9A9',
@@ -441,7 +442,7 @@
sum by (status) (
label_replace(label_replace(rate(%s[$__rate_interval]),
"status", "${1}xx", "%s", "([0-9]).."),
"status", "${1}", "%s", "([a-z]+)"))
"status", "${1}", "%s", "([a-zA-Z]+)"))
||| % [selector, statusLabelName, statusLabelName],
format: 'time_series',
intervalFactor: 2,

0 comments on commit cbcc611

Please sign in to comment.