http:
address: 0.0.0.0
port: 9094
alerts-path-prefix: /alerts
metrics-path: /metrics
metrics-enabled: true
# basic-password is required - the app has a hardcoded default basic-username of "alertmanager"
# and will exit silently if basic-password is not set
basic-password: "alertmanager-webhook"
matrix:
# Matrix Synapse is on bart (failover from hf-pdocker-01)
homeserver-url: http://192.168.86.167:8008
user-id: "@alertbot:hobbs.farm"
# Access token stored directly - ${MATRIX_ACCESS_TOKEN} env var syntax is NOT supported
# (the app uses yaml parsing, not shell interpolation)
access-token: "syt_YWxlcnRib3Q_eOVAYjYKWBZxymfdxhPE_0iYlOZ"
room-mapping:
notifications: "!jYmqxbzEsvRgKYvwMP:hobbs.farm"
templating:
external-url-mapping:
# Alertmanager and Prometheus are on hf-pdocker-02 (failover from hf-pdocker-01)
"http://alertmanager:9093": "http://192.168.86.100:9093"
generator-url-mapping:
"http://prometheus:9090": "http://192.168.86.100:9095"
computed-values:
- values:
color: red
when-matching-labels:
severity: critical
- values:
color: orange
when-matching-labels:
severity: warning
- values:
color: blue
when-matching-labels:
severity: info
# NOTE: Templates use .Alert (singular) not .Alerts (plural)
# This application calls the template once per individual alert, not per group
firing-template: |
ALERT: {{ .Alert.Labels.alertname }}
| Instance: | {{ .Alert.Labels.instance }} |
| Severity: | {{ .Alert.Labels.severity }} |
| Summary: | {{ .Alert.Annotations.summary }} |
| Description: | {{ .Alert.Annotations.description }} |
resolved-template: |
RESOLVED: {{ .Alert.Labels.alertname }}
| Instance: | {{ .Alert.Labels.instance }} |
| Summary: | {{ .Alert.Annotations.summary }} |