We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
qpsPanel
1 parent c2bca64 commit 5627ad0Copy full SHA for 5627ad0
grafana-builder/grafana.libsonnet
@@ -485,7 +485,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
485
sum by (status) (
486
label_replace(label_replace(rate(%s[$__rate_interval]),
487
"status", "${1}xx", "%s", "([0-9]).."),
488
- "status", "${1}", "%s", "([a-zA-Z]+)"))
+ "status", "${1}", "%s", "([a-zA-Z_]+)"))
489
||| % [selector, statusLabelName, statusLabelName],
490
format: 'time_series',
491
legendFormat: '{{status}}',
@@ -503,7 +503,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
503
504
label_replace(label_replace(%(metricQuery)s,
505
"status", "${1}xx", "%(label)s", "([0-9]).."),
506
- "status", "${1}", "%(label)s", "([a-zA-Z]+)"))
+ "status", "${1}", "%(label)s", "([a-zA-Z_]+)"))
507
|||,
508
native: template % { metricQuery: nativeClassicQuery.native, label: statusLabelName },
509
classic: template % { metricQuery: nativeClassicQuery.classic, label: statusLabelName },
0 commit comments