您的位置:首页 > 财经 > 产业 > 下载安装Grafana 监控mysql和Linux主机

下载安装Grafana 监控mysql和Linux主机

2024/10/6 12:28:54 来源:https://blog.csdn.net/Fish_1112/article/details/139478205  浏览:    关键词:下载安装Grafana 监控mysql和Linux主机

下载地址:https://grafana.com/grafana/download

[root@localhost ~]# wget https://dl.grafana.com/oss/release/grafana-7.2.0-
1.x86_64.rpm
安装
[root@localhost ~]# yum install grafana-7.2.0-1.x86_64.rpm -y

启动服务

[root@localhost ~]# systemctl enable --now grafana-server
[root@localhost ~]# ss -lnupt | grep 3000
tcp    LISTEN     0      128      :::3000                 :::*                   users:(("grafana-server",pid=1412,fd=8))

使用grafana-cli 安装插件 

# grafana-cli plugins list-remote 列出所有可用的插件
# grafana-cli plugins install grafana-worldmap-panel 安装世界地图插件
# grafana-cli plugins install grafana-clock-panel 安装时间插件
# grafana-cli plugins install grafana-piechart-panel 安装圆饼插件
# grafana-cli plugins ls 列出已经安装的插件
安装完毕需要重启服务
# systemctl restart grafana-server

在浏览器输入URL   IP:3000     用户名admin  密码admin 

添加数据源

 写Prometheus的IP

添加MySQL监控数据图形

此处我们使用MySQL Overview 监控的dashboard,dashboard Id为:7362

编号10547  node Exporter 0.16 + for Prometheus监控展示看板 

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com