Prometheus实现钉钉告警

一.安装概括

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

 

上一篇:配置Alertmanager发送报警到企业微信


下一篇:Prometheus+Grafana+Alertmanager 开源监控平台部署