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

Commit dc21ed0

Browse files
committed
Added WAL corruptions to dashboard
Signed-off-by: Marco Pracucci <[email protected]>
1 parent d96454a commit dc21ed0

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

cortex-mixin/dashboards/writes.libsonnet

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
166166
)
167167
.addRowIf(
168168
std.setMember('tsdb', $._config.storage_engine),
169-
$.row('Ingester - Blocks storage - TSDB Compactions')
169+
$.row('Ingester - Blocks storage - TSDB Head')
170170
.addPanel(
171171
$.successFailurePanel(
172172
'Compactions / sec',
@@ -181,14 +181,19 @@ local utils = import 'mixin-utils/utils.libsonnet';
181181
)
182182
.addRowIf(
183183
std.setMember('tsdb', $._config.storage_engine),
184-
$.row('Ingester - Blocks storage - TSDB WAL truncation and checkpoints')
184+
$.row('Ingester - Blocks storage - TSDB WAL')
185185
.addPanel(
186186
$.successFailurePanel(
187187
'WAL truncations / sec',
188188
'sum(rate(cortex_ingester_tsdb_wal_truncations_total{%s}[$__interval])) - sum(rate(cortex_ingester_tsdb_wal_truncations_failed_total{%s}[$__interval]))' % [$.jobMatcher($._config.job_names.ingester), $.jobMatcher($._config.job_names.ingester)],
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+
)
192197
.addPanel(
193198
$.successFailurePanel(
194199
'Checkpoints created / sec',
@@ -197,9 +202,21 @@ local utils = import 'mixin-utils/utils.libsonnet';
197202
),
198203
)
199204
.addPanel(
200-
$.panel('WAL truncations latency') +
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') },
205+
$.panel('Corruptions / sec') +
206+
$.queryPanel([
207+
'sum(rate(cortex_ingester_wal_corruptions_total{%s}[$__interval]))' % $.jobMatcher($._config.job_names.ingester),
208+
'sum(rate(cortex_ingester_tsdb_mmap_chunk_corruptions_total{%s}[$__interval]))' % $.jobMatcher($._config.job_names.ingester),
209+
], [
210+
'WAL',
211+
'mmap-ed chunks',
212+
]) +
213+
$.stack + {
214+
yaxes: $.yaxes('ops'),
215+
aliasColors: {
216+
WAL: '#E24D42',
217+
'mmap-ed chunks': '#E28A42',
218+
},
219+
},
203220
)
204221
),
205222
}

0 commit comments

Comments
 (0)