-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
mixin, docs: Rename Compact -> Compactor #2065
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
local thanos = self, | ||
compactor+:: { | ||
jobPrefix: error 'must provide job prefix for Thanos Compact alerts', | ||
selector: error 'must provide selector for Thanos Compact alerts', | ||
jobPrefix: error 'must provide job prefix for Thanos Compactor alerts', | ||
selector: error 'must provide selector for Thanos Compactor alerts', | ||
}, | ||
prometheusAlerts+:: { | ||
groups+: [ | ||
|
@@ -12,7 +12,7 @@ | |
{ | ||
alert: 'ThanosCompactorMultipleCompactsAreRunning', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
annotations: { | ||
message: 'You should never run more than one Thanos Compact at once. You have {{ $value }}', | ||
message: 'You should never run more than one Thanos Compactor at once. You have {{ $value }}', | ||
}, | ||
expr: 'sum(up{%(selector)s}) > 1' % thanos.compactor, | ||
'for': '5m', | ||
|
@@ -23,7 +23,7 @@ | |
{ | ||
alert: 'ThanosCompactorHalted', | ||
annotations: { | ||
message: 'Thanos Compact {{$labels.job}} has failed to run and now is halted.', | ||
message: 'Thanos Compactor {{$labels.job}} has failed to run and now is halted.', | ||
}, | ||
expr: 'thanos_compactor_halted{%(selector)s} == 1' % thanos.compactor, | ||
'for': '5m', | ||
|
@@ -34,7 +34,7 @@ | |
{ | ||
alert: 'ThanosCompactorHighCompactionFailures', | ||
annotations: { | ||
message: 'Thanos Compact {{$labels.job}} is failing to execute {{ $value | humanize }}% of compactions.', | ||
message: 'Thanos Compactor {{$labels.job}} is failing to execute {{ $value | humanize }}% of compactions.', | ||
}, | ||
expr: ||| | ||
( | ||
|
@@ -52,7 +52,7 @@ | |
{ | ||
alert: 'ThanosCompactorBucketHighOperationFailures', | ||
annotations: { | ||
message: 'Thanos Compact {{$labels.job}} Bucket is failing to execute {{ $value | humanize }}% of operations.', | ||
message: 'Thanos Compactor {{$labels.job}} Bucket is failing to execute {{ $value | humanize }}% of operations.', | ||
}, | ||
expr: ||| | ||
( | ||
|
@@ -70,7 +70,7 @@ | |
{ | ||
alert: 'ThanosCompactorHasNotRun', | ||
annotations: { | ||
message: 'Thanos Compact {{$labels.job}} has not uploaded anything for 24 hours.', | ||
message: 'Thanos Compactor {{$labels.job}} has not uploaded anything for 24 hours.', | ||
}, | ||
expr: '(time() - max(thanos_objstore_bucket_last_successful_upload_time{%(selector)s})) / 60 / 60 > 24' % thanos.compactor, | ||
labels: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it better to use
ThanosCompactorMultipleCompactorsAreRunning