Skip to content
Snippets Groups Projects
Commit abc89913 authored by Frederic Branczyk's avatar Frederic Branczyk Committed by GitHub
Browse files

Merge pull request #1870 from squat/alert_readability

contrib/.../alerts: improve alert messages
parents a9527247 34dd0a79
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
{ {
alert: 'AlertmanagerDownOrMissing', alert: 'AlertmanagerDownOrMissing',
annotations: { annotations: {
description: 'An unexpected number of Alertmanagers are scraped or Alertmanagers disappeared from discovery.', description: 'An unexpected number of Alertmanagers were scraped or disappeared from discovery.',
summary: 'Alertmanager down or missing', summary: 'Alertmanager down or missing',
}, },
expr: ||| expr: |||
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{ {
alert: 'TargetDown', alert: 'TargetDown',
annotations: { annotations: {
description: '{{ $value }}% of {{ $labels.job }} targets are down.', description: '{{ $value }}% of the {{ $labels.job }} targets are down.',
summary: 'Targets are down', summary: 'Targets are down',
}, },
expr: '100 * (count(up == 0) BY (job) / count(up) BY (job)) > 10', expr: '100 * (count(up == 0) BY (job) / count(up) BY (job)) > 10',
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
{ {
alert: 'DeadMansSwitch', alert: 'DeadMansSwitch',
annotations: { annotations: {
description: 'This is a DeadMansSwitch meant to ensure that the entire Alerting pipeline is functional.', description: 'This is a DeadMansSwitch meant to ensure that the entire alerting pipeline is functional.',
summary: 'Alerting DeadMansSwitch', summary: 'Alerting DeadMansSwitch',
}, },
expr: 'vector(1)', expr: 'vector(1)',
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{ {
alert: 'NodeDiskRunningFull', alert: 'NodeDiskRunningFull',
annotations: { annotations: {
message: 'Device {{ $labels.device }} of node-exporter {{ $labels.namespace }}/{{ $labels.pod }} is running full within the next 24 hours.', message: 'Device {{ $labels.device }} of node-exporter {{ $labels.namespace }}/{{ $labels.pod }} will be full within the next 24 hours.',
}, },
expr: ||| expr: |||
(node:node_filesystem_usage: > 0.85) and (predict_linear(node:node_filesystem_avail:[6h], 3600 * 24) < 0) (node:node_filesystem_usage: > 0.85) and (predict_linear(node:node_filesystem_avail:[6h], 3600 * 24) < 0)
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
{ {
alert: 'NodeDiskRunningFull', alert: 'NodeDiskRunningFull',
annotations: { annotations: {
message: 'Device {{ $labels.device }} of node-exporter {{ $labels.namespace }}/{{ $labels.pod }} is running full within the next 2 hours.', message: 'Device {{ $labels.device }} of node-exporter {{ $labels.namespace }}/{{ $labels.pod }} will be full within the next 2 hours.',
}, },
expr: ||| expr: |||
(node:node_filesystem_usage: > 0.85) and (predict_linear(node:node_filesystem_avail:[30m], 3600 * 2) < 0) (node:node_filesystem_usage: > 0.85) and (predict_linear(node:node_filesystem_avail:[30m], 3600 * 2) < 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment