Simple AlertmanagerConfig¶
This example shows how to add config into Alertmanager for sending metrics and grouping them.
Config¶
spec:
route:
groupBy: ['job']
groupWait: 30s
groupInterval: 5m
repeatInterval: 12h
receiver: 'wechat-example'
receivers:
- name: 'wechat-example'
wechatConfigs:
- apiURL: 'http://wechatserver:8080/'
corpID: 'wechat-corpid'
apiSecret:
name: 'wechat-config'
key: 'apiSecret'
It means that the Alertmanager will:
- group alerts by label
job
- before group alert wait
30s
to be sure that alerts will not close quickly - group by interval
5n
- repeat alert (send new notification about raised alerts) every
12h
- send alerts to receiver with name
wechat-example
- create receiver with name
wechat-example
and specified settings
Files¶
How to apply example¶
Kubernetes:
OpenShift:
Links¶
- Prometheus operator
- API Documentation
- Alerting user guide
- Victoriametrics operator
- API Documentation