mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-10-26 21:51:00 +01:00
Merge pull request #1059 from dgrisonnet/watchdog-example
Update developing examples to use ExampleAlert instead of Watchdog
This commit is contained in:
commit
e3dcbb7fa6
@ -90,13 +90,13 @@ local kp = (import 'kube-prometheus/main.libsonnet') + {
|
|||||||
name: 'example-group',
|
name: 'example-group',
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
alert: 'Watchdog',
|
alert: 'ExampleAlert',
|
||||||
expr: 'vector(1)',
|
expr: 'vector(1)',
|
||||||
labels: {
|
labels: {
|
||||||
severity: 'none',
|
severity: 'warning',
|
||||||
},
|
},
|
||||||
annotations: {
|
annotations: {
|
||||||
description: 'This is a Watchdog meant to ensure that the entire alerting pipeline is functional.',
|
description: 'This is an example alert.',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@ -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"}}]}]}
|
||||||
@ -1,9 +1,9 @@
|
|||||||
groups:
|
groups:
|
||||||
- name: example-group
|
- name: example-group
|
||||||
rules:
|
rules:
|
||||||
- alert: Watchdog
|
- alert: ExampleAlert
|
||||||
expr: vector(1)
|
expr: vector(1)
|
||||||
labels:
|
labels:
|
||||||
severity: "none"
|
severity: "warning"
|
||||||
annotations:
|
annotations:
|
||||||
description: This is a Watchdog meant to ensure that the entire alerting pipeline is functional.
|
description: This is an example alert.
|
||||||
|
|||||||
@ -18,13 +18,13 @@ local kp = (import 'kube-prometheus/main.libsonnet') + {
|
|||||||
name: 'example-group',
|
name: 'example-group',
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
alert: 'Watchdog',
|
alert: 'ExampleAlert',
|
||||||
expr: 'vector(1)',
|
expr: 'vector(1)',
|
||||||
labels: {
|
labels: {
|
||||||
severity: 'none',
|
severity: 'warning',
|
||||||
},
|
},
|
||||||
annotations: {
|
annotations: {
|
||||||
description: 'This is a Watchdog meant to ensure that the entire alerting pipeline is functional.',
|
description: 'This is an example alert.',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user