diff --git a/docs/developing-prometheus-rules-and-grafana-dashboards.md b/docs/developing-prometheus-rules-and-grafana-dashboards.md index 990c07bf69c14b2bb8b343b29e31181411c482b9..b3a67f1f4cf4cc968d0c16303ce52e8910f04db6 100644 --- a/docs/developing-prometheus-rules-and-grafana-dashboards.md +++ b/docs/developing-prometheus-rules-and-grafana-dashboards.md @@ -90,13 +90,13 @@ local kp = (import 'kube-prometheus/main.libsonnet') + { name: 'example-group', rules: [ { - alert: 'Watchdog', + alert: 'ExampleAlert', expr: 'vector(1)', labels: { - severity: 'none', + severity: 'warning', }, annotations: { - description: 'This is a Watchdog meant to ensure that the entire alerting pipeline is functional.', + description: 'This is an example alert.', }, }, ], diff --git a/examples/existingrule.json b/examples/existingrule.json index 41d6620b87749b68f9aa222b9582a27ac0469068..8486eb7d721506133c2720706f48892e6190e2d4 100644 --- a/examples/existingrule.json +++ b/examples/existingrule.json @@ -1 +1 @@ -{"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 +{"groups":[{"name":"example-group","rules":[{"alert":"ExampleAlert","annotations":{"description":"This is an example alert."},"expr":"vector(1)","labels":{"severity":"warning"}}]}]} \ No newline at end of file diff --git a/examples/existingrule.yaml b/examples/existingrule.yaml index 6a67032f96accb758e0ab108c1c72be037b7efe4..ab5de27041282bd0fe173bc8ad0e8401811c5e29 100644 --- a/examples/existingrule.yaml +++ b/examples/existingrule.yaml @@ -1,9 +1,9 @@ groups: - name: example-group rules: - - alert: Watchdog + - alert: ExampleAlert expr: vector(1) labels: - severity: "none" + severity: "warning" annotations: - description: This is a Watchdog meant to ensure that the entire alerting pipeline is functional. + description: This is an example alert. diff --git a/examples/prometheus-additional-alert-rule-example.jsonnet b/examples/prometheus-additional-alert-rule-example.jsonnet index 483b9cb1f656411909d0672a5077817f1018ec5a..43dc538c158e49561fadb3a581d05e35244d0f78 100644 --- a/examples/prometheus-additional-alert-rule-example.jsonnet +++ b/examples/prometheus-additional-alert-rule-example.jsonnet @@ -18,13 +18,13 @@ local kp = (import 'kube-prometheus/main.libsonnet') + { name: 'example-group', rules: [ { - alert: 'Watchdog', + alert: 'ExampleAlert', expr: 'vector(1)', labels: { - severity: 'none', + severity: 'warning', }, annotations: { - description: 'This is a Watchdog meant to ensure that the entire alerting pipeline is functional.', + description: 'This is an example alert.', }, }, ],