zabbix结合grafana画图

grafana简介

Grafana是一款用Go语言开发的开源数据可视化工具,可以做数据监控和数据统计,带有告警功能。目前使用grafana的公司有很多,如paypal、ebay、intel等。

grafana特点

①可视化:快速和灵活的客户端图形具有多种选项。面板插件为许多不同的方式可视化指标和日志。
②报警:可视化地为最重要的指标定义警报规则。Grafana将持续评估它们,并发送通知。
③通知:警报更改状态时,它会发出通知。接收电子邮件通知。
④动态仪表盘:使用模板变量创建动态和可重用的仪表板,这些模板变量作为下拉菜单出现在仪表板顶部。
⑤混合数据源:在同一个图中混合不同的数据源!可以根据每个查询指定数据源。这甚至适用于自定义数据源。
⑥注释:注释来自不同数据源图表。将鼠标悬停在事件上可以显示完整的事件元数据和标记。
⑦过滤器:过滤器允许您动态创建新的键/值过滤器,这些过滤器将自动应用于使用该数据源的所有查询。

grafana安装

# 证书不可信在地址后面加--no-check-certificate
[root@localhost src]# wget https://dl.grafana.com/enterprise/release/grafana-enterprise-8.2.0-1.x86_64.rpm --no-check-certificate
[root@localhost src]# yum -y install grafana.x86_64 
[root@localhost src]# systemctl daemon-reload
[root@localhost src]# systemctl start grafana-server
[root@localhost src]# systemctl enable grafana-server
Created symlink /etc/systemd/system/multi-user.target.wants/grafana-server.service → /usr/lib/systemd/system/grafana-server.service.
[root@localhost src]# ss -antl
State          Recv-Q         Send-Q                 Local Address:Port                  Peer Address:Port        Process         
LISTEN         0              128                          0.0.0.0:111                        0.0.0.0:*                           
LISTEN         0              32                     192.168.122.1:53                         0.0.0.0:*                           
LISTEN         0              128                          0.0.0.0:22                         0.0.0.0:*                           
LISTEN         0              5                          127.0.0.1:631                        0.0.0.0:*                           
LISTEN         0              128                          0.0.0.0:10050                      0.0.0.0:*                           
LISTEN         0              128                          0.0.0.0:10051                      0.0.0.0:*                           
LISTEN         0              128                        127.0.0.1:9000                       0.0.0.0:*                           
LISTEN         0              128                             [::]:111                           [::]:*                           
LISTEN         0              128                                *:80                               *:*                           
LISTEN         0              128                             [::]:22                            [::]:*                           
LISTEN         0              5                              [::1]:631                           [::]:*                           
LISTEN         0              128                                *:3000                             *:*                           
LISTEN         0              80                                 *:3306                             *:*   0
3000端口为打开                         
[root@localhost src]# grafana-cli plugins list-remote
[root@localhost src]# grafana-cli plugins install alexanderzobnin-zabbix-app
[root@localhost src]# grafana-cli plugins install alexanderzobnin-zabbix-app
installing alexanderzobnin-zabbix-app @ 4.1.5
from: https://grafana.com/api/plugins/alexanderzobnin-zabbix-app/versions/4.1.5/download
into: /var/lib/grafana/plugins




✔ Installed alexanderzobnin-zabbix-app successfully 

Restart grafana after installing plugins . <service grafana-server restart>
[root@localhost src]# service grafana-server restart



猜你喜欢

转载自blog.csdn.net/weixin_46115601/article/details/120650238