Skip to content

Commit

Permalink
Merge pull request grafana/cortex-jsonnet#321 from grafana/lower-inge…
Browse files Browse the repository at this point in the history
…ster-restarts-severity

Lower CortexIngesterRestarts severity
  • Loading branch information
pracucci authored Jun 8, 2021
2 parents 5958a65 + ac5a656 commit edd68a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jsonnet/mimir-mixin/alerts/alerts.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,13 @@
{
alert: 'CortexIngesterRestarts',
expr: |||
changes(process_start_time_seconds{job=~".+(cortex|ingester.*)"}[30m]) > 1
changes(process_start_time_seconds{job=~".+(cortex|ingester.*)"}[30m]) >= 2
|||,
labels: {
severity: 'critical',
// This alert is on a cause not symptom. A couple of ingesters restarts may be suspicious but
// not necessarily an issue (eg. may happen because of the K8S node autoscaler), so we're
// keeping the alert as warning as a signal in case of an outage.
severity: 'warning',
},
annotations: {
message: '{{ $labels.job }}/{{ $labels.instance }} has restarted {{ printf "%.2f" $value }} times in the last 30 mins.',
Expand Down

0 comments on commit edd68a4

Please sign in to comment.