-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new alerts for alertmanager sharding mode of operation.
- Loading branch information
Showing
4 changed files
with
124 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
groups+: [ | ||
{ | ||
name: 'alertmanager_alerts', | ||
rules: [ | ||
{ | ||
alert: 'CortexAlertmanagerSyncConfigsFailing', | ||
expr: ||| | ||
rate(cortex_alertmanager_sync_configs_failed_total[5m]) > 0 | ||
|||, | ||
'for': '30m', | ||
labels: { | ||
severity: 'critical', | ||
}, | ||
annotations: { | ||
message: ||| | ||
Cortex Alertmanager {{ $labels.job }}/{{ $labels.instance }} is failing to read tenant configurations from storage. | ||
|||, | ||
}, | ||
}, | ||
{ | ||
alert: 'CortexAlertmanagerRingCheckFailing', | ||
expr: ||| | ||
rate(cortex_alertmanager_ring_check_errors_total[2m]) > 0 | ||
|||, | ||
'for': '10m', | ||
labels: { | ||
severity: 'critical', | ||
}, | ||
annotations: { | ||
message: ||| | ||
Cortex Alertmanager {{ $labels.job }}/{{ $labels.instance }} is unable to check tenants ownership via the ring. | ||
|||, | ||
}, | ||
}, | ||
{ | ||
alert: 'CortexAlertmanagerPartialStateMergeFailing', | ||
expr: ||| | ||
rate(cortex_alertmanager_partial_state_merges_failed_total[2m]) > 0 | ||
|||, | ||
'for': '10m', | ||
labels: { | ||
severity: 'critical', | ||
}, | ||
annotations: { | ||
message: ||| | ||
Cortex Alertmanager {{ $labels.job }}/{{ $labels.instance }} is failing to merge partial state changes received from a replica. | ||
|||, | ||
}, | ||
}, | ||
{ | ||
alert: 'CortexAlertmanagerReplicationFailing', | ||
expr: ||| | ||
rate(cortex_alertmanager_state_replication_failed_total[2m]) > 0 | ||
|||, | ||
'for': '10m', | ||
labels: { | ||
severity: 'critical', | ||
}, | ||
annotations: { | ||
message: ||| | ||
Cortex Alertmanager {{ $labels.job }}/{{ $labels.instance }} is failing to replicating partial state to its replicas. | ||
|||, | ||
}, | ||
}, | ||
{ | ||
alert: 'CortexAlertmanagerPersistStateFailing', | ||
expr: ||| | ||
rate(cortex_alertmanager_state_persist_failed_total[15m]) > 0 | ||
|||, | ||
'for': '1h', | ||
labels: { | ||
severity: 'critical', | ||
}, | ||
annotations: { | ||
message: ||| | ||
Cortex Alertmanager {{ $labels.job }}/{{ $labels.instance }} is unable to persist full state snaphots to remote storage. | ||
|||, | ||
}, | ||
}, | ||
{ | ||
alert: 'CortexAlertmanagerInitialSyncFailed', | ||
expr: ||| | ||
increase(cortex_alertmanager_state_initial_sync_completed_total{outcome="failed"}[1m]) > 0 | ||
|||, | ||
labels: { | ||
severity: 'critical', | ||
}, | ||
annotations: { | ||
message: ||| | ||
Cortex Alertmanager {{ $labels.job }}/{{ $labels.instance }} was unable to obtain some initial state when starting up. | ||
|||, | ||
}, | ||
}, | ||
], | ||
}, | ||
], | ||
} |
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