Zabbix接Grafana
Zabbix接Grafana

Zabbix接Grafana

https://grafana.com/grafana/download

[root@ntpzabbix ~]#wget https://dl.grafana.com/enterprise/release/grafana-enterprise-9.1.7-1.x86_64.rpm

[root@ntpzabbix ~]#sudo yum install grafana-enterprise-9.1.7-1.x86_64.rpm

[root@ntpzabbix ~]#systemctl enable --now grafana-server.service 
Synchronizing state of grafana-server.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable grafana-server
Created symlink /etc/systemd/system/multi-user.target.wants/grafana-server.service → /usr/lib/systemd/system/grafana-server.service.

[root@ntpzabbix ~]#ss -ntl
State                 Recv-Q                Send-Q                               Local Address:Port                                  Peer Address:Port                Process                
LISTEN                0                     128                                        0.0.0.0:22                                         0.0.0.0:*                                          
LISTEN                0                     100                                      127.0.0.1:25                                         0.0.0.0:*                                          
LISTEN                0                     128                                        0.0.0.0:10051                                      0.0.0.0:*                                          
LISTEN                0                     128                                              *:80                                               *:*                                          
LISTEN                0                     128                                           [::]:22                                            [::]:*                                          
LISTEN                0                     128                                              *:3000                                             *:*                                          
LISTEN                0                     100                                          [::1]:25                                            [::]:*                                          
LISTEN                0                     128                                              *:10050                                            *:*                                          
LISTEN                0                     128                                           [::]:10051                                         [::]:*                                          
LISTEN                0                     50                                               *:10052                                            *:*                                          
LISTEN                0                     70                                               *:33060                                            *:*                                          
LISTEN                0                     128                                              *:3306                                             *:*                                          

安装grafana插件

[root@ntpzabbix ~]#grafana-cli plugins list-remote|egrep zabbix
id: alexanderzobnin-zabbix-app version: 4.2.10
[root@ntpzabbix ~]#grafana-cli plugins list-versions alexanderzobnin-zabbix-app
4.2.10
4.2.9
4.2.8
4.2.7
4.2.6
4.2.5
4.2.4
4.2.3
4.2.2
4.2.1
4.2.0
4.1.5
4.1.4
4.1.3
4.1.2
4.1.1
4.1.0
4.0.2
4.0.1
4.0.0
3.12.4
3.12.3
3.12.2
3.12.1
3.12.0
3.11.0
3.10.5
3.10.4
3.10.3
3.10.2
3.10.1
3.10.0
3.9.1
3.9.0
3.8.1
3.8.0
3.7.0
3.6.1
3.6.0
3.5.1
3.5.0
3.4.0
3.3.0
3.2.1
3.2.0
3.1.2
3.1.1
3.1.0
3.0.0
3.0.0-beta8
3.0.0-beta7
3.0.0-beta6
3.0.0-beta5
3.0.0-beta4
3.0.0-beta3
Please restart Grafana after installing plugins. Refer to Grafana documentation for instructions if necessary.

[root@ntpzabbix ~]#grafana-cli plugins install alexanderzobnin-zabbix-app
✔ Downloaded alexanderzobnin-zabbix-app v4.2.10 zip successfully

Please restart Grafana after installing plugins. Refer to Grafana documentation for instructions if necessary.

[root@ntpzabbix ~]#grafana-cli plugins ls
installed plugins:
alexanderzobnin-zabbix-app @ 4.2.10
Please restart Grafana after installing plugins. Refer to Grafana documentation for instructions if necessary.

[root@ntpzabbix ~]#systemctl restart grafana-server.service

在 Grafana 中启用 Zabbix 插件

grafana自定义模板