From ef539c398b023245e00f83af7ec3b45898b25c1a Mon Sep 17 00:00:00 2001 From: goll <adrian.goll@gmail.com> Date: Fri, 15 Mar 2019 15:37:42 +0100 Subject: [PATCH] Rename DeadMansSwitch to Watchdog --- README.md | 4 ++-- docs/developing-prometheus-rules-and-grafana-dashboards.md | 4 ++-- examples/alertmanager-config.jsonnet | 2 +- examples/alertmanager-config.yaml | 2 +- examples/existingrule.json | 2 +- examples/existingrule.yaml | 4 ++-- examples/prometheus-additional-alert-rule-example.jsonnet | 4 ++-- jsonnet/kube-prometheus/alertmanager/alertmanager.libsonnet | 2 +- jsonnet/kube-prometheus/alerts/general.libsonnet | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 79e7f929..bc320b79 100644 --- a/README.md +++ b/README.md @@ -298,7 +298,7 @@ These are the available fields with their respective default values: receiver: 'null' routes: - match: - alertname: DeadMansSwitch + alertname: Watchdog receiver: 'null' receivers: - name: 'null' @@ -497,7 +497,7 @@ The Alertmanager configuration is located in the `_config.alertmanager.config` c receiver: 'null' routes: - match: - alertname: DeadMansSwitch + alertname: Watchdog receiver: 'null' receivers: - name: 'null' diff --git a/docs/developing-prometheus-rules-and-grafana-dashboards.md b/docs/developing-prometheus-rules-and-grafana-dashboards.md index dcd0ad72..d6c74999 100644 --- a/docs/developing-prometheus-rules-and-grafana-dashboards.md +++ b/docs/developing-prometheus-rules-and-grafana-dashboards.md @@ -49,13 +49,13 @@ local kp = (import 'kube-prometheus/kube-prometheus.libsonnet') + { name: 'example-group', rules: [ { - alert: 'DeadMansSwitch', + alert: 'Watchdog', expr: 'vector(1)', labels: { severity: 'none', }, annotations: { - description: 'This is a DeadMansSwitch meant to ensure that the entire alerting pipeline is functional.', + description: 'This is a Watchdog meant to ensure that the entire alerting pipeline is functional.', }, }, ], diff --git a/examples/alertmanager-config.jsonnet b/examples/alertmanager-config.jsonnet index 162104d7..f08dbe19 100644 --- a/examples/alertmanager-config.jsonnet +++ b/examples/alertmanager-config.jsonnet @@ -12,7 +12,7 @@ receiver: 'null' routes: - match: - alertname: DeadMansSwitch + alertname: Watchdog receiver: 'null' receivers: - name: 'null' diff --git a/examples/alertmanager-config.yaml b/examples/alertmanager-config.yaml index 78c65b64..b341b55f 100644 --- a/examples/alertmanager-config.yaml +++ b/examples/alertmanager-config.yaml @@ -9,7 +9,7 @@ route: receiver: 'null' routes: - match: - alertname: DeadMansSwitch + alertname: Watchdog receiver: 'null' receivers: - name: 'null' diff --git a/examples/existingrule.json b/examples/existingrule.json index b29a5c45..41d6620b 100644 --- a/examples/existingrule.json +++ b/examples/existingrule.json @@ -1 +1 @@ -{"groups":[{"name":"example-group","rules":[{"alert":"DeadMansSwitch","annotations":{"description":"This is a DeadMansSwitch meant to ensure that the entire alerting pipeline is functional."},"expr":"vector(1)","labels":{"severity":"none"}}]}]} \ No newline at end of file +{"groups":[{"name":"example-group","rules":[{"alert":"Watchdog","annotations":{"description":"This is a Watchdog meant to ensure that the entire alerting pipeline is functional."},"expr":"vector(1)","labels":{"severity":"none"}}]}]} \ No newline at end of file diff --git a/examples/existingrule.yaml b/examples/existingrule.yaml index 94d9d691..6a67032f 100644 --- a/examples/existingrule.yaml +++ b/examples/existingrule.yaml @@ -1,9 +1,9 @@ groups: - name: example-group rules: - - alert: DeadMansSwitch + - alert: Watchdog expr: vector(1) labels: severity: "none" annotations: - description: This is a DeadMansSwitch meant to ensure that the entire alerting pipeline is functional. + description: This is a Watchdog meant to ensure that the entire alerting pipeline is functional. diff --git a/examples/prometheus-additional-alert-rule-example.jsonnet b/examples/prometheus-additional-alert-rule-example.jsonnet index b8d16af8..622df032 100644 --- a/examples/prometheus-additional-alert-rule-example.jsonnet +++ b/examples/prometheus-additional-alert-rule-example.jsonnet @@ -8,13 +8,13 @@ local kp = (import 'kube-prometheus/kube-prometheus.libsonnet') + { name: 'example-group', rules: [ { - alert: 'DeadMansSwitch', + alert: 'Watchdog', expr: 'vector(1)', labels: { severity: 'none', }, annotations: { - description: 'This is a DeadMansSwitch meant to ensure that the entire alerting pipeline is functional.', + description: 'This is a Watchdog meant to ensure that the entire alerting pipeline is functional.', }, }, ], diff --git a/jsonnet/kube-prometheus/alertmanager/alertmanager.libsonnet b/jsonnet/kube-prometheus/alertmanager/alertmanager.libsonnet index 6d5525e1..47e61e29 100644 --- a/jsonnet/kube-prometheus/alertmanager/alertmanager.libsonnet +++ b/jsonnet/kube-prometheus/alertmanager/alertmanager.libsonnet @@ -28,7 +28,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet'; { receiver: 'null', match: { - alertname: 'DeadMansSwitch', + alertname: 'Watchdog', }, }, ], diff --git a/jsonnet/kube-prometheus/alerts/general.libsonnet b/jsonnet/kube-prometheus/alerts/general.libsonnet index 8705389f..24a4dfd5 100644 --- a/jsonnet/kube-prometheus/alerts/general.libsonnet +++ b/jsonnet/kube-prometheus/alerts/general.libsonnet @@ -16,7 +16,7 @@ }, }, { - alert: 'DeadMansSwitch', + alert: 'Watchdog', annotations: { message: ||| This is an alert meant to ensure that the entire alerting pipeline is functional. -- GitLab