-
Notifications
You must be signed in to change notification settings - Fork 840
Implement partition compaction planner #6469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 15 commits
18d8cbc
04b50a3
e408173
eb09a54
8f34239
567cabe
baf2969
4318a48
f6bccdb
61e0dc0
bc36e56
252c2a2
589c909
35d835c
3c65fbd
751aabb
519eec0
5f5fd8d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,6 +39,7 @@ type compactorMetrics struct { | |
| remainingPlannedCompactions *prometheus.GaugeVec | ||
| compactionErrorsCount *prometheus.CounterVec | ||
| partitionCount *prometheus.GaugeVec | ||
| compactionsNotPlanned *prometheus.CounterVec | ||
| } | ||
|
|
||
| const ( | ||
|
|
@@ -174,6 +175,10 @@ func newCompactorMetricsWithLabels(reg prometheus.Registerer, commonLabels []str | |
| Name: "cortex_compactor_group_partition_count", | ||
| Help: "Number of partitions for each compaction group.", | ||
| }, compactionLabels) | ||
| m.compactionsNotPlanned = promauto.With(reg).NewCounterVec(prometheus.CounterOpts{ | ||
| Name: "cortex_compactor_group_compactions_not_planned", | ||
| Help: "Total number of group compaction not planned due to non-critical error (ie. group is currently visited by other compactor).", | ||
|
||
| }, compactionLabels) | ||
|
|
||
| return &m | ||
| } | ||
|
|
@@ -225,6 +230,7 @@ func (m *compactorMetrics) initMetricWithCompactionLabelValues(labelValue ...str | |
| m.compactionFailures.WithLabelValues(labelValue...) | ||
| m.verticalCompactions.WithLabelValues(labelValue...) | ||
| m.partitionCount.WithLabelValues(labelValue...) | ||
| m.compactionsNotPlanned.WithLabelValues(labelValue...) | ||
| } | ||
|
|
||
| func (m *compactorMetrics) deleteMetricsForDeletedTenant(userID string) { | ||
|
|
@@ -236,4 +242,5 @@ func (m *compactorMetrics) deleteMetricsForDeletedTenant(userID string) { | |
| m.compactionFailures.DeleteLabelValues(userID) | ||
| m.verticalCompactions.DeleteLabelValues(userID) | ||
| m.partitionCount.DeleteLabelValues(userID) | ||
| m.compactionsNotPlanned.DeleteLabelValues(userID) | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.