48 lines
976 B
YAML
48 lines
976 B
YAML
---
|
|
apiVersion: influxdata.com/v2alpha1
|
|
kind: Label
|
|
metadata:
|
|
name: label-1
|
|
---
|
|
apiVersion: influxdata.com/v2alpha1
|
|
kind: Label
|
|
metadata:
|
|
name: label-2
|
|
---
|
|
apiVersion: influxdata.com/v2alpha1
|
|
kind: NotificationRule
|
|
metadata:
|
|
name: rule-uuid
|
|
spec:
|
|
name: rule_0
|
|
description: desc_0
|
|
channel: "#two-fer-one"
|
|
endpointName: endpoint-0
|
|
every: 10m
|
|
offset: 30s
|
|
messageTemplate: "Notification Rule: ${ r._notification_rule_name } triggered by check: ${ r._check_name }: ${ r._message }"
|
|
status: active
|
|
statusRules:
|
|
- currentLevel: WARN
|
|
- currentLevel: CRIT
|
|
previousLevel: OK
|
|
tagRules:
|
|
- key: k1
|
|
value: v2
|
|
operator: eQuAl
|
|
- key: k1
|
|
value: v1
|
|
operator: eQuAl
|
|
associations:
|
|
- kind: Label
|
|
name: label-1
|
|
- kind: Label
|
|
name: label-2
|
|
---
|
|
apiVersion: influxdata.com/v2alpha1
|
|
kind: NotificationEndpointSlack
|
|
metadata:
|
|
name: endpoint-0
|
|
spec:
|
|
url: https://hooks.slack.com/services/bip/piddy/boppidy
|