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

Commit 278192e

Browse files
committed
Added per pod writes to distributors and ingesters
Signed-off-by: Joe Elliott <[email protected]>
1 parent ebdf1f2 commit 278192e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

cortex-mixin/dashboards/writes.libsonnet

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ local utils = import 'mixin-utils/utils.libsonnet';
5959
$.panel('Latency') +
6060
utils.latencyRecordingRulePanel('cortex_request_duration_seconds', $.jobSelector($._config.job_names.distributor) + [utils.selector.re('route', '/httpgrpc.*|api_prom_push')])
6161
)
62+
.addPanelIf(
63+
$._config.per_instance_label != '',
64+
$.panel('Per %s p99 Latency' % $._config.per_instance_label) +
65+
$.hiddenLegendQueryPanel(
66+
'histogram_quantile(0.99, sum by(le, %s) (rate(cortex_request_duration_seconds_bucket{%s, route=~"/httpgrpc.*|api_prom_push"}[$__interval])))' % [$._config.per_instance_label, $.jobMatcherEquality($._config.job_names.distributor)], ''
67+
) +
68+
{ yaxes: $.yaxes('s') }
69+
)
6270
)
6371
.addRow(
6472
$.row('KV Store (HA Dedupe)')
@@ -81,6 +89,14 @@ local utils = import 'mixin-utils/utils.libsonnet';
8189
$.panel('Latency') +
8290
utils.latencyRecordingRulePanel('cortex_request_duration_seconds', $.jobSelector($._config.job_names.ingester) + [utils.selector.eq('route', '/cortex.Ingester/Push')])
8391
)
92+
.addPanelIf(
93+
$._config.per_instance_label != '',
94+
$.panel('Per %s p99 Latency' % $._config.per_instance_label) +
95+
$.hiddenLegendQueryPanel(
96+
'histogram_quantile(0.99, sum by(le, %s) (rate(cortex_request_duration_seconds_bucket{%s, route="/cortex.Ingester/Push"}[$__interval])))' % [$._config.per_instance_label, $.jobMatcherEquality($._config.job_names.ingester)], ''
97+
) +
98+
{ yaxes: $.yaxes('s') }
99+
)
84100
)
85101
.addRow(
86102
$.row('KV Store (Ring)')

0 commit comments

Comments
 (0)