AlertManager的安装、启动,和server端关联
AlertManager的安装、启动,和server端关联
发布时间:2025-03-18 13:12:35
AlertManager的安装、启动,和server端关联
解压二进制安装包
Tar xvf alertmanager-$VERSION.darwin-amd64.tar.gz
创建alertmanager配置文件
Alertmanager解压后会包含一个默认的alertmanager.yml
启动./alertmanager
启动后可以通过9093端口访问,http://192.168.33.10:9093
Server关联
编辑Prometheus配置文件prometheus.yml
alerting:
alertmanagers:
- static_configs:
targets: 'localhost:9093']
重启Prometheus服务