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

Commit 98bbfb1

Browse files
committed
Clarified the WAL truncations latency includes checkpointing
Signed-off-by: Marco Pracucci <[email protected]>
1 parent dc21ed0 commit 98bbfb1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cortex-mixin/dashboards/writes.libsonnet

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,18 +189,18 @@ local utils = import 'mixin-utils/utils.libsonnet';
189189
'sum(rate(cortex_ingester_tsdb_wal_truncations_failed_total{%s}[$__interval]))' % $.jobMatcher($._config.job_names.ingester),
190190
),
191191
)
192-
.addPanel(
193-
$.panel('WAL truncations latency') +
194-
$.queryPanel('sum(rate(cortex_ingester_tsdb_wal_truncate_duration_seconds_sum{%s}[$__interval])) / sum(rate(cortex_ingester_tsdb_wal_truncate_duration_seconds_count{%s}[$__interval]))' % [$.jobMatcher($._config.job_names.ingester), $.jobMatcher($._config.job_names.ingester)], 'avg') +
195-
{ yaxes: $.yaxes('s') },
196-
)
197192
.addPanel(
198193
$.successFailurePanel(
199194
'Checkpoints created / sec',
200195
'sum(rate(cortex_ingester_tsdb_checkpoint_creations_total{%s}[$__interval])) - sum(rate(cortex_ingester_tsdb_checkpoint_creations_failed_total{%s}[$__interval]))' % [$.jobMatcher($._config.job_names.ingester), $.jobMatcher($._config.job_names.ingester)],
201196
'sum(rate(cortex_ingester_tsdb_checkpoint_creations_failed_total{%s}[$__interval]))' % $.jobMatcher($._config.job_names.ingester),
202197
),
203198
)
199+
.addPanel(
200+
$.panel('WAL truncations latency (includes checkpointing)') +
201+
$.queryPanel('sum(rate(cortex_ingester_tsdb_wal_truncate_duration_seconds_sum{%s}[$__interval])) / sum(rate(cortex_ingester_tsdb_wal_truncate_duration_seconds_count{%s}[$__interval]))' % [$.jobMatcher($._config.job_names.ingester), $.jobMatcher($._config.job_names.ingester)], 'avg') +
202+
{ yaxes: $.yaxes('s') },
203+
)
204204
.addPanel(
205205
$.panel('Corruptions / sec') +
206206
$.queryPanel([

0 commit comments

Comments
 (0)