文章目录
Prometheus+Grafana+AlertManager监控平台搭建
开始监控
Grafana连接Prometheus数据源
点击Add your first data source
选择Prometheus
Prometheus server URL中输入IP地址及端口号
注意:此处IP地址为Prometheus在Docker容器内部的IP地址
查看容器内ID方法:
linux
docker exec -it 容器ID sh
linux
ifconfig

退出:Ctrl+D
点击底部Save&Test
导入Grafana模板

填入模板号,点击load
选择之前设置的Prometheus作为数据源即可
监控Linux主机状态
