File alertmanager.service of Package alertmanager
[Unit]
Description=The Alertmanager handles alerts sent by client applications such as the Prometheus server.
Documentation=https://prometheus.io/docs/alerting/alertmanager/
Requires=network.target
RequiresMountsFor=/srv /var
[Service]
Type=simple
EnvironmentFile=/etc/sysconfig/alertmanager
ExecStart=/usr/bin/alertmanager \
--config.file=${CONFIG_FILE} \
--log.level=${LOG_LEVEL} \
--web.listen-address=${WEB_LISTEN_ADDRESS} \
--web.external-url=${WEB_EXTERNAL_URL} \
--web.route-prefix=${WEB_ROUTE_PREFIX} \
--storage.path=${STORAGE_PATH} \
--data.retention=${DATA_RETENTION} \
--alerts.gc-interval=${ALERTS_GC_INTERVAL} \
--cluster.listen-address=${CLUSTER_LISTEN_ADDRESS} \
--cluster.advertise-address=${CLUSTER_ADVERTISE_ADDRESS} \
--cluster.peer=${CLUSTER_PEER} \
--cluster.peer-timeout=${CLUSTER_PEER_TIMEOUT} \
--cluster.gossip-interval=${CLUSTER_GOSSIP_INTERVAL} \
--cluster.pushpull-interval=${CLUSTER_PUSHPULL_INTERVAL} \
--cluster.tcp-timeout=${CLUSTER_TCP_TIMEOUT} \
--cluster.probe-timeout=${CLUSTER_PROBE_TIMEOUT} \
--cluster.probe-interval=${CLUSTER_PROBE_INTERVAL} \
--cluster.settle-timeout=${CLUSTER_SETTLE_TIMEOUT} \
--cluster.reconnect-interval=${CLUSTER_RECONNECT_INTERVAL} \
--cluster.reconnect-timeout=${CLUSTER_RECONNECT_TIMEOUT}
ExecReload=/bin/kill -HUP $MAINPID
WorkingDirectory=/var/lib/alertmanager
User=prometheus
Group=prometheus
[Install]
WantedBy=multi-user.target