alertmanager

alertmanager

go 复制代码
wget https://github.com/prometheus/alertmanager/releases/download/v0.27.0/alertmanager-0.27.0.linux-amd64.tar.gz
go 复制代码
tar -zxvf alertmanager-0.27.0.linux-amd64.tar.gz
mv alertmanager-0.27.0.linux-amd64 alertmanager
cd alertmanager/
mkdir alertmanager_data
go 复制代码
vim /lib/systemd/system/alertmanager.service
go 复制代码
[Unit]
Description=alertmanager service

[Service]
User=root
ExecStart=/root/alertmanager/alertmanager \
        --config.file=/root/alertmanager/alertmanager.yml \
        --storage.path=/root/alertmanager/alertmanager_data

TimeoutStopSec=10
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
go 复制代码
systemctl daemon-reload
systemctl enable alertmanager.service
systemctl start alertmanager.service
systemctl status alertmanager.service
go 复制代码
# netstat -ntlp | grep alertmanager 
tcp6       0      0 :::9093                 :::*                    LISTEN      594433/alertmanager 
tcp6       0      0 :::9094                 :::*                    LISTEN      594433/alertmanager 
go 复制代码
9093 端口: 这是 Alertmanager 的默认端口,用于其 Web 用户界面和 API。
9094 端口: Alertmanager 使用 9094 端口进行集群通信

参考

  1. alertmanager
相关推荐
迷茫运维路2 个月前
golang开发alertmanagerWebhook,实现prometheus+alertmanagerWebhook告警
golang·prometheus·webhook·alertmanager·监控告警
SRETalk4 个月前
Prometheus 告警恢复时,怎么获取恢复时的值?
prometheus·alertmanager·flashduty·nightingale
ZZDICT5 个月前
Prometheus-v2.45.0+Grafana+邮件告警
grafana·prometheus·alertmanager
小码农叔叔5 个月前
【云原生】Prometheus整合Alertmanager告警规则使用详解
alertmanager·altermanager使用·alertmanager搭建·alertmanager详解·alertmanager总结
何中应7 个月前
CentOS 7安装alertmanager
linux·centos·alertmanager
醉颜凉8 个月前
Kubernetes(k8s)监控与报警(qq邮箱+钉钉):Prometheus + Grafana + Alertmanager(超详细)
云原生·kubernetes·grafana·prometheus·alertmanager·监控与报警
inventecsh8 个月前
Docker-compose部署Alertmanager+Dingtalk+Prometheus+Grafana实现钉钉报警
docker·docker-compose·grafana·prometheus·alertmanager·dingtalk
godleft901 年前
第八篇: K8S Prometheus Operator实现Ceph集群企业微信机器人告警
ceph·kubernetes·grafana·prometheus·alertmanager