Grafana监控实战应用
1.安装Grafana
官网地址:https://grafana.com/grafana/download?pg=get&plcmt=selfmanaged-box1-cta1
//下载
wget https://dl.grafana.com/enterprise/release/grafana-enterprise-8.5.1.linux-amd64.tar.gz
//解压
tar -xf grafana-enterprise-8.5.1.linux-amd64.tar.gz -C /usr/local/
//改名
mv grafana-8.5.1 grafana
//启动
nohup /usr/local/grafana/bin/grafana-server &
//浏览器输入,端口3000
192.168.0.215:3000,默认用户名密码admin,admin
2.添加数据源为普罗米修斯
3.添加数据图表
4.匹配条件
instance:匹配ip
job:匹配机器名称
[dashboards.json]
enabled = true
path = /usr/local/grafana/dashboards/grafana-dashboards-main/dashboards
5.模版
官网模版:https://grafana.com/grafana/dashboards
下图7362
选择了IT,必定终身学习