【发布时间】:2018-01-26 07:12:11
【问题描述】:
使用官方Prometheus图表stable/prometheus。
自定义其values.yaml文件以设置alertmanager.yml文件和serverFiles区域。
rules: {}:
https://github.com/kubernetes/charts/blob/master/stable/prometheus/values.yaml#L598
它是{}。这里如何写真正的警报规则为official format?
例如,我试过:
serverFiles:
alerts: {}
rules:
# Alert for any instance that is unreachable for >5 minutes.
- alert: InstanceDown
expr: up == 0
for: 5m
labels:
severity: page
annotations:
summary: "Instance {{ $labels.instance }} down"
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes."
然后跑了$ helm install my_prometheus。然后 pod 得到这个错误:
PersistentVolumeClaim is not bound: "sweet-terrier-prometheus-server"
Back-off restarting failed container
Error syncing pod
【问题讨论】:
标签: charts configuration yaml rules prometheus