赞
踩
# 安装 Grafana wget https://dl.grafana.com/oss/release/grafana-8.0.3-1.x86_64.rpm sudo yum install grafana-8.0.3-1.x86_64.rpm # 启动 Grafana [root@promethues ~]# sudo systemctl enable --now grafana-server Created symlink from /etc/systemd/system/multi-user.target.wants/grafana-server.service to /usr/lib/systemd/system/grafana-server.service. [root@promethues ~]# sudo systemctl status grafana-server ● grafana-server.service - Grafana instance Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2021-10-31 16:51:20 CST; 6s ago Docs: http://docs.grafana.org Main PID: 2488 (grafana-server) Tasks: 10 Memory: 30.9M ...... [root@promethues ~]# ss -anltp|grep 3000 LISTEN 0 128 [::]:3000 [::]:* users:(("grafana-server",pid=2488,fd=8)) [root@promethues ~]#
登录测试
# 默认用户名 密码 admin/admin,登录后提示需要修改密码
Http://ip:3000
Grafana 接入 prometheus 数据源
第一步添加 prometheus 数据源
点击 save & test
查找 Promethus node 的 Dashboard
https://grafana.com/grafana/dashboards?dataSource=prometheus&search=node
获取这个 Dashboard
导入 Grafana
效果展示
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。