examples: use ExampleAlert instead of Watchdog

Replace Watchdog alerts part of the `example-group` in some examples by
ExampleAlert alerts to reinforce the fact that this is just an example.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
This commit is contained in:
Damien Grisonnet 2021-03-25 18:09:42 +01:00
parent ea12911e4f
commit 8973a90049
4 changed files with 10 additions and 10 deletions

View File

@ -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.',
},
},
],

View File

@ -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"}}]}]}
{"groups":[{"name":"example-group","rules":[{"alert":"ExampleAlert","annotations":{"description":"This is an example alert."},"expr":"vector(1)","labels":{"severity":"warning"}}]}]}

View File

@ -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.

View File

@ -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.',
},
},
],