Skip to content

Commit

Permalink
Rename ThanosSidecarUnhealthy to ThanosSidecarNoConnectionToStartedPr…
Browse files Browse the repository at this point in the history
…ometheus

Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
  • Loading branch information
arajkumar committed Aug 26, 2021
1 parent f22882c commit a6b5b00
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions examples/alerts/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,11 @@ groups:
for: 5m
labels:
severity: critical
- alert: ThanosSidecarUnhealthy
- alert: ThanosSidecarNoConnectionToStartedPrometheus
annotations:
description: Thanos Sidecar {{$labels.instance}} is unhealthy for more than
{{$value}} seconds.
runbook_url: https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarunhealthy
runbook_url: https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarnoconnectiontostartedprometheus
summary: Thanos Sidecar cannot access Prometheus, even though Prometheus seems
healthy and has reloaded WAL.
expr: |
Expand Down
18 changes: 9 additions & 9 deletions examples/alerts/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ tests:

alert_rule_test:
- eval_time: 1m
alertname: ThanosSidecarUnhealthy
alertname: ThanosSidecarNoConnectionToStartedPrometheus
- eval_time: 2m
alertname: ThanosSidecarUnhealthy
alertname: ThanosSidecarNoConnectionToStartedPrometheus
- eval_time: 3m
alertname: ThanosSidecarUnhealthy
alertname: ThanosSidecarNoConnectionToStartedPrometheus
- eval_time: 10m
alertname: ThanosSidecarUnhealthy
alertname: ThanosSidecarNoConnectionToStartedPrometheus
exp_alerts:
- exp_labels:
severity: critical
Expand All @@ -107,10 +107,10 @@ tests:
pod: prometheus-1
exp_annotations:
description: 'Thanos Sidecar thanos-sidecar-1 is unhealthy for more than 600 seconds.'
runbook_url: 'https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarunhealthy'
runbook_url: 'https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarnoconnectiontostartedprometheus'
summary: 'Thanos Sidecar cannot access Prometheus, even though Prometheus seems healthy and has reloaded WAL.'
- eval_time: 11m
alertname: ThanosSidecarUnhealthy
alertname: ThanosSidecarNoConnectionToStartedPrometheus
exp_alerts:
- exp_labels:
severity: critical
Expand All @@ -119,10 +119,10 @@ tests:
pod: prometheus-1
exp_annotations:
description: 'Thanos Sidecar thanos-sidecar-1 is unhealthy for more than 660 seconds.'
runbook_url: 'https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarunhealthy'
runbook_url: 'https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarnoconnectiontostartedprometheus'
summary: 'Thanos Sidecar cannot access Prometheus, even though Prometheus seems healthy and has reloaded WAL.'
- eval_time: 12m
alertname: ThanosSidecarUnhealthy
alertname: ThanosSidecarNoConnectionToStartedPrometheus
exp_alerts:
- exp_labels:
severity: critical
Expand All @@ -131,7 +131,7 @@ tests:
pod: prometheus-1
exp_annotations:
description: 'Thanos Sidecar thanos-sidecar-1 is unhealthy for more than 720 seconds.'
runbook_url: 'https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarunhealthy'
runbook_url: 'https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarnoconnectiontostartedprometheus'
summary: 'Thanos Sidecar cannot access Prometheus, even though Prometheus seems healthy and has reloaded WAL.'
- interval: 1m
input_series:
Expand Down
2 changes: 1 addition & 1 deletion mixin/alerts/sidecar.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
},
{
alert: 'ThanosSidecarUnhealthy',
alert: 'ThanosSidecarNoConnectionToStartedPrometheus',
annotations: {
description: 'Thanos Sidecar {{$labels.instance}}%s is unhealthy for more than {{$value}} seconds.' % location,
summary: 'Thanos Sidecar cannot access Prometheus, even though Prometheus seems healthy and has reloaded WAL.',
Expand Down
2 changes: 1 addition & 1 deletion mixin/runbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
|Name|Summary|Description|Severity|Runbook|
|---|---|---|---|---|
|ThanosSidecarBucketOperationsFailed|Thanos Sidecar bucket operations are failing|Thanos Sidecar {{$labels.instance}} bucket operations are failing|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarbucketoperationsfailed](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarbucketoperationsfailed)|
|ThanosSidecarUnhealthy|Thanos Sidecar cannot access Prometheus, even though Prometheus seems healthy and has reloaded WAL.|Thanos Sidecar {{$labels.instance}} is unhealthy for more than {{$value}} seconds.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarunhealthy](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarunhealthy)|
|ThanosSidecarNoConnectionToStartedPrometheus|Thanos Sidecar cannot access Prometheus, even though Prometheus seems healthy and has reloaded WAL.|Thanos Sidecar {{$labels.instance}} is unhealthy for more than {{$value}} seconds.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarnoconnectiontostartedprometheus](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarnoconnectiontostartedprometheus)|

## thanos-store

Expand Down

0 comments on commit a6b5b00

Please sign in to comment.