https://www.cnblogs.com/blogof-fusu/p/17161554.html
https://devopscube.com/prometheus-alert-manager/
https://kebingzao.com/2022/11/29/prometheus-4-alertmanager/
tee /etc/systemd/system/alertmanager.service <<-'EOF'
[Unit]
Description=Alert manager Server
Documentation=https://prometheus.io/docs/introduction/overview/
After=network-online.target
[Service]
User=prometheus
Restart=on-failure
ExecStart={{alertmanager_deploy_path}}/alertmanager --config.file={{alertmanager_deploy_path}}/alertmanager.yml --storage.path={{alertmanager_base_path}}/data
[Install]
WantedBy=multi-user.target
EOF
tee /etc/systemd/system/alertmanager.service <<-'EOF'
[Unit]
Description=Alert manager Server
Documentation=https://prometheus.io/docs/introduction/overview/
After=network-online.target
[Service]
User=prometheus
Restart=on-failure
ExecStart={{alertmanager_deploy_path}}/alertmanager --config.file={{alertmanager_deploy_path}}/alertmanager.yml --storage.path={{alertmanager_base_path}}/data
[Install]
WantedBy=multi-user.target
EOF