目次
Grafanaのインストール手順。
| OS | CentOS 7.4 |
| Grafana | grafana-5.4.2-1.x86_64 |
CentOS 7.4に対してRPM形式のGrafanaをインストールする手順。
以下はインターネットへの接続が可能な環境における手順。
wget https://dl.grafana.com/oss/release/grafana-5.4.2-1.x86_64.rpm
yum localinstall grafana-5.4.2-1.x86_64.rpm
=================================================================================================================== Package Arch Version Repository Size =================================================================================================================== Installing: grafana x86_64 5.4.2-1 /grafana-5.4.2-1.x86_64 151 M Installing for dependencies: fontconfig x86_64 2.13.0-4.3.el7 base 254 k libfontenc x86_64 1.1.3-3.el7 base 31 k urw-fonts noarch 2.4-16.el7 base 3.0 M xorg-x11-font-utils x86_64 1:7.5-21.el7 base 104 k Updating for dependencies: freetype x86_64 2.8-12.el7 base 380 k ===================================================================================================================
systemctl start grafana-server
http://[IP]:3000/
| User | admin |
| Password | admin |
Zabbix連携用のプラグイン
grafana-cli plugins install alexanderzobnin-zabbix-app
【変更前】 ;root_url = http://localhost:3000 【変更後】 root_url = http://localhost:3000/grafana
<IfModule mod_proxy.c> ProxyRequests Off ProxyPass /grafana http://127.0.0.1:3000 ProxyPassReverse /grafana http://127.0.0.1:3000 </IfModule>
service httpd configtest⇒ 「Syntax OK」が返ることを確認
systemctl restart httpd systemctl start grafana-server
http://[Server IP]/grafana/