Skip to content

Commit c4865da

Browse files
committed
mixin: add deletion metrics for compactor
Signed-off-by: Mathis Raguin <[email protected]>
1 parent 05fbe15 commit c4865da

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ sse_config:
209209
- [#2579](https://github.com/thanos-io/thanos/pull/2579) Store: Experimental caching bucket can now cache metadata as well. Config has changed from #2532.
210210
- [#2526](https://github.com/thanos-io/thanos/pull/2526) Compact: In case there are no labels left after deduplication via `--deduplication.replica-label`, assign first `replica-label` with value `deduped`.
211211
- [#2621](https://github.com/thanos-io/thanos/pull/2621) Receive: Added flag to configure forward request timeout. Receive write will complete request as soon as quorum of writes succeeds.
212+
- [#3380](https://github.com/thanos-io/thanos/pull/3380) mixin: add deletion metrics for compactor.
212213

213214
### Changed
214215

mixin/dashboards/compact.libsonnet

+34
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,40 @@ local g = import '../lib/thanos-grafana-builder/builder.libsonnet';
8080
g.latencyPanel('thanos_compact_garbage_collection_duration_seconds', 'namespace="$namespace",job=~"$job"')
8181
)
8282
)
83+
.addRow(
84+
g.row('Blocks deletion')
85+
.addPanel(
86+
g.panel(
87+
'Deletion Rate',
88+
'Shows deletion rate of blocks already marked for deletion.'
89+
) +
90+
g.queryPanel(
91+
'sum(rate(thanos_compact_blocks_cleaned_total{namespace="$namespace",job=~"$job"}[$interval])) by (job)',
92+
'Blocks cleanup {{job}}'
93+
) +
94+
g.stack
95+
)
96+
.addPanel(
97+
g.panel(
98+
'Deletion Error Rate',
99+
'Shows deletion failures rate of blocks already marked for deletion.'
100+
) +
101+
g.queryPanel(
102+
'sum(rate(thanos_compact_block_cleanup_failures_total{namespace="$namespace",job=~"$job"}[$interval])) by (job)',
103+
'Blocks cleanup failures {{job}}'
104+
)
105+
)
106+
.addPanel(
107+
g.panel(
108+
'Marking Rate',
109+
'Shows rate at which blocks are marked for deletion (from GC and retention policy).'
110+
) +
111+
g.queryPanel(
112+
'sum(rate(thanos_compact_blocks_marked_for_deletion_total{namespace="$namespace",job=~"$job"}[$interval])) by (job)',
113+
'Blocks marked {{job}}'
114+
)
115+
)
116+
)
83117
.addRow(
84118
g.row('Sync Meta')
85119
.addPanel(

0 commit comments

Comments
 (0)