Merge "Add extensible command line flags to Alertmanager"
This commit is contained in:
commit
f5caa0c7da
@ -15,7 +15,7 @@ apiVersion: v1
|
||||
appVersion: v0.20.0
|
||||
description: OpenStack-Helm Alertmanager for Prometheus
|
||||
name: prometheus-alertmanager
|
||||
version: 0.1.1
|
||||
version: 0.1.2
|
||||
home: https://prometheus.io/docs/alerting/alertmanager/
|
||||
sources:
|
||||
- https://github.com/prometheus/alertmanager
|
||||
|
@ -20,8 +20,10 @@ COMMAND="${@:-start}"
|
||||
function start () {
|
||||
exec /bin/alertmanager \
|
||||
--config.file=/etc/alertmanager/config.yml \
|
||||
--storage.path={{ .Values.conf.command_flags.alertmanager.storage.path }} \
|
||||
--cluster.listen-address={{ .Values.conf.command_flags.alertmanager.cluster.listen_address }} \
|
||||
{{- range $flag, $value := .Values.conf.command_flags.alertmanager }}
|
||||
{{- $flag := $flag | replace "_" "-" }}
|
||||
{{ printf "--%s=%s" $flag $value | indent 4 }} \
|
||||
{{- end }}
|
||||
$(generate_peers)
|
||||
}
|
||||
|
||||
|
@ -250,10 +250,8 @@ network_policy:
|
||||
conf:
|
||||
command_flags:
|
||||
alertmanager:
|
||||
storage:
|
||||
path: /var/lib/alertmanager/data
|
||||
cluster:
|
||||
listen_address: "0.0.0.0:9094"
|
||||
storage.path: /var/lib/alertmanager/data
|
||||
cluster.listen_address: "0.0.0.0:9094"
|
||||
snmpnotifier:
|
||||
alert_default_severity: crititcal
|
||||
alert_severities: "critical,warning,info,page"
|
||||
|
Loading…
Reference in New Issue
Block a user