Merge pull request #1059 from dgrisonnet/watchdog-example

Update developing examples to use ExampleAlert instead of Watchdog
This commit is contained in:
Paweł Krupa 2021-03-25 20:59:37 +01:00 committed by GitHub
commit e3dcbb7fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.',
},
},
],