grafana-部署对数据可视化
1. grafana-部署对数据可视化
-
grafana-部署
Grafana是一个开源的度量分析和可视化系统。
部署文档:https://grafana.com/grafana/download
访问地址:http://IP:3000
用户名/密码:admin/admin#第一次需要重置密码
-
这里使用二进制进行安装
-
下载二进制包
[root@iZj6cbgktk3zjpge312vq2Z ~]# wget https://dl.grafana.com/oss/release/grafana-7.5.7.linux-amd64.tar.gz
-
解压
[root@iZj6cbgktk3zjpge312vq2Z ~]# tar -zxvf grafana-7.5.7.linux-amd64.tar.gz
-
拷贝路径
[root@iZj6cbgktk3zjpge312vq2Z ~]# mv grafana-7.5.7 /opt/monitor/ [root@iZj6cbgktk3zjpge312vq2Z ~]# cd /opt/monitor/ [root@iZj6cbgktk3zjpge312vq2Z opt]# mv grafana-7.5.7 grafana
-
启动服务测试
[root@iZj6cbgktk3zjpge312vq2Z monitor]# cd grafana/ [root@iZj6cbgktk3zjpge312vq2Z grafana]# cd bin/ [root@iZj6cbgktk3zjpge312vq2Z bin]# ./grafana- grafana-cli grafana-server [root@iZj6cbgktk3zjpge312vq2Z bin]# ./grafana-server
-
浏览器测试
-
编写系统配置服务
[root@iZj6cbgktk3zjpge312vq2Z bin]# cd /usr/lib/systemd/system/ [root@iZj6cbgktk3zjpge312vq2Z system]# vi grafana.service [root@iZj6cbgktk3zjpge312vq2Z system]# cat grafana.service [Unit] Description=grafana [Service] ExecStart=/opt/monitor/grafana/bin/grafana-server -homepath=/opt/monitor/grafana ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=on-failure [Install] WantedBy=multi-user.target
-
启动系统服务
[root@iZj6cbgktk3zjpge312vq2Z system]# systemctl daemon-reload [root@iZj6cbgktk3zjpge312vq2Z system]# systemctl start grafana [root@iZj6cbgktk3zjpge312vq2Z system]# systemctl enable grafana
-
浏览器访问 http://ip:3000
用户密码:admin/admin
-
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通