Skip to content

Commit 5627ad0

Browse files
authored
Fix issue where qpsPanel shows an empty series name for gRPC requests with an underscore in their status code (#1519)
1 parent c2bca64 commit 5627ad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grafana-builder/grafana.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
485485
sum by (status) (
486486
label_replace(label_replace(rate(%s[$__rate_interval]),
487487
"status", "${1}xx", "%s", "([0-9]).."),
488-
"status", "${1}", "%s", "([a-zA-Z]+)"))
488+
"status", "${1}", "%s", "([a-zA-Z_]+)"))
489489
||| % [selector, statusLabelName, statusLabelName],
490490
format: 'time_series',
491491
legendFormat: '{{status}}',
@@ -503,7 +503,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
503503
sum by (status) (
504504
label_replace(label_replace(%(metricQuery)s,
505505
"status", "${1}xx", "%(label)s", "([0-9]).."),
506-
"status", "${1}", "%(label)s", "([a-zA-Z]+)"))
506+
"status", "${1}", "%(label)s", "([a-zA-Z_]+)"))
507507
|||,
508508
native: template % { metricQuery: nativeClassicQuery.native, label: statusLabelName },
509509
classic: template % { metricQuery: nativeClassicQuery.classic, label: statusLabelName },

0 commit comments

Comments
 (0)