42 lines
853 B
YAML
42 lines
853 B
YAML
apiVersion: influxdata.com/v2alpha1
|
|
kind: NotificationRule
|
|
metadata:
|
|
name:
|
|
envRef:
|
|
key: meta-name
|
|
default: meta
|
|
spec:
|
|
name:
|
|
envRef:
|
|
key: spec-name
|
|
default: spectacles
|
|
endpointName:
|
|
envRef:
|
|
key: endpoint-meta-name
|
|
every: 10m
|
|
offset: 30s
|
|
messageTemplate: "Notification Rule: ${ r._notification_rule_name } triggered by check: ${ r._check_name }: ${ r._message }"
|
|
statusRules:
|
|
- currentLevel: WARN
|
|
associations:
|
|
- kind: Label
|
|
name:
|
|
envRef:
|
|
key: label-meta-name
|
|
---
|
|
apiVersion: influxdata.com/v2alpha1
|
|
kind: Label
|
|
metadata:
|
|
name:
|
|
envRef:
|
|
key: label-meta-name
|
|
---
|
|
apiVersion: influxdata.com/v2alpha1
|
|
kind: NotificationEndpointSlack
|
|
metadata:
|
|
name:
|
|
envRef:
|
|
key: endpoint-meta-name
|
|
spec:
|
|
url: https://hooks.slack.com/services/bip/piddy/boppidy
|