113 lines
2.1 KiB
YAML
113 lines
2.1 KiB
YAML
apiVersion: influxdata.com/v2alpha1
|
|
kind: Label
|
|
metadata:
|
|
name:
|
|
envRef:
|
|
key: label-1-name-ref
|
|
spec:
|
|
---
|
|
apiVersion: influxdata.com/v2alpha1
|
|
kind: Bucket
|
|
metadata:
|
|
name:
|
|
envRef:
|
|
key: bkt-1-name-ref
|
|
spec:
|
|
associations:
|
|
- kind: Label
|
|
name:
|
|
envRef:
|
|
key: label-1-name-ref
|
|
---
|
|
apiVersion: influxdata.com/v2alpha1
|
|
kind: CheckDeadman
|
|
metadata:
|
|
name:
|
|
envRef:
|
|
key: check-1-name-ref
|
|
spec:
|
|
every: 5m
|
|
level: cRiT
|
|
query: >
|
|
from(bucket: "rucket_1") |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|
|
statusMessageTemplate: "Check: ${ r._check_name } is: ${ r._level }"
|
|
associations:
|
|
- kind: Label
|
|
name:
|
|
envRef:
|
|
key: label-1-name-ref
|
|
---
|
|
apiVersion: influxdata.com/v2alpha1
|
|
kind: Dashboard
|
|
metadata:
|
|
name:
|
|
envRef:
|
|
key: dash-1-name-ref
|
|
spec:
|
|
associations:
|
|
- kind: Label
|
|
name:
|
|
envRef:
|
|
key: label-1-name-ref
|
|
---
|
|
apiVersion: influxdata.com/v2alpha1
|
|
kind: NotificationEndpointSlack
|
|
metadata:
|
|
name:
|
|
envRef:
|
|
key: endpoint-1-name-ref
|
|
spec:
|
|
url: https://hooks.slack.com/services/bip/piddy/boppidy
|
|
---
|
|
apiVersion: influxdata.com/v2alpha1
|
|
kind: NotificationRule
|
|
metadata:
|
|
name:
|
|
envRef:
|
|
key: rule-1-name-ref
|
|
spec:
|
|
endpointName:
|
|
envRef:
|
|
key: endpoint-1-name-ref
|
|
every: 10m
|
|
messageTemplate: "Notification Rule: ${ r._notification_rule_name } triggered by check: ${ r._check_name }: ${ r._message }"
|
|
statusRules:
|
|
- currentLevel: WARN
|
|
---
|
|
apiVersion: influxdata.com/v2alpha1
|
|
kind: Telegraf
|
|
metadata:
|
|
name:
|
|
envRef:
|
|
key: telegraf-1-name-ref
|
|
spec:
|
|
config: |
|
|
[agent]
|
|
interval = "10s"
|
|
[[outputs.influxdb_v2]]
|
|
urls = ["http://localhost:9999"]
|
|
token = "$INFLUX_TOKEN"
|
|
organization = "rg"
|
|
bucket = "rucket_3"
|
|
---
|
|
apiVersion: influxdata.com/v2alpha1
|
|
kind: Task
|
|
metadata:
|
|
name:
|
|
envRef:
|
|
key: task-1-name-ref
|
|
spec:
|
|
cron: 15 * * * *
|
|
query: >
|
|
from(bucket: "rucket_1")
|
|
---
|
|
apiVersion: influxdata.com/v2alpha1
|
|
kind: Variable
|
|
metadata:
|
|
name:
|
|
envRef:
|
|
key: var-1-name-ref
|
|
spec:
|
|
type: constant
|
|
values: [first val]
|