Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 2087fa9

Browse files
authored
Fix writes dashboard (#193)
Signed-off-by: Ganesh Vernekar <[email protected]>
1 parent 9346bed commit 2087fa9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cortex-mixin/dashboards/writes.libsonnet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ local utils = import 'mixin-utils/utils.libsonnet';
2727
)
2828
.addPanel(
2929
$.panel('QPS') +
30-
$.statPanel('sum(rate(cortex_request_duration_seconds_count{%s, route="api_(v1|prom)_push"}[5m]))' % $.jobMatcher($._config.job_names.gateway), format='reqps')
30+
$.statPanel('sum(rate(cortex_request_duration_seconds_count{%s, route=~"api_(v1|prom)_push"}[5m]))' % $.jobMatcher($._config.job_names.gateway), format='reqps')
3131
)
3232
)
3333
.addRow(
3434
$.row('Gateway')
3535
.addPanel(
3636
$.panel('QPS') +
37-
$.qpsPanel('cortex_request_duration_seconds_count{%s, route="api_(v1|prom)_push"}' % $.jobMatcher($._config.job_names.gateway))
37+
$.qpsPanel('cortex_request_duration_seconds_count{%s, route=~"api_(v1|prom)_push"}' % $.jobMatcher($._config.job_names.gateway))
3838
)
3939
.addPanel(
4040
$.panel('Latency') +
@@ -43,7 +43,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
4343
.addPanel(
4444
$.panel('Per %s p99 Latency' % $._config.per_instance_label) +
4545
$.hiddenLegendQueryPanel(
46-
'histogram_quantile(0.99, sum by(le, %s) (rate(cortex_request_duration_seconds_bucket{%s, route="api_(v1|prom)_push"}[$__interval])))' % [$._config.per_instance_label, $.jobMatcherEquality($._config.job_names.gateway)], ''
46+
'histogram_quantile(0.99, sum by(le, %s) (rate(cortex_request_duration_seconds_bucket{%s, route=~"api_(v1|prom)_push"}[$__interval])))' % [$._config.per_instance_label, $.jobMatcherEquality($._config.job_names.gateway)], ''
4747
) +
4848
{ yaxes: $.yaxes('s') }
4949
)

0 commit comments

Comments
 (0)