一.安装概括
Alertmanager 安装
安装prometheus-webhook-dingtalk
二.详细步骤
1. 官网下载Alertmanager
https://prometheus.io/download/#alertmanager wget https://github.com/prometheus/alertmanager/releases/download/v0.17.0/alertmanager-0.17.0.linux-amd64.tar.gz tar xvf alertmanager-0.17.0.linux-amd64.tar.gz mv alertmanager-0.17.0.linux-amd64 /data/alertmanager
2.加入系统启动命令
vim /etc/systemd/system/alertmanager.service [Unit] Description=alertmanager Documentation=https://prometheus.io/download/#alertmanager After=network.target [Service] Type=simple ExecStart=/data/alertmanager/alertmanager --config.file=/data/alertmanager/alertmanager.yml Restart=on-failure [Install] WantedBy=multi-user.target
启动
systemctl status alertmanager systemctl start alertmanager systemctl stop alertmanager