Grafana インストール手順
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
目次~
#contents
*概要 [#r7a7c6a9]
Grafanaのインストール手順。
**環境情報 [#cbe67d79]
|OS|CentOS 7.4|
|Grafana|grafana-5.4.2-1.x86_64|
*インストール手順 [#z84a336c]
**CentOS 7.4 [#oca6ae8d]
CentOS 7.4に対してRPM形式のGrafanaをインストールする手順。~
以下はインターネットへの接続が可能な環境における手順。~
***手順 [#tb87cafd]
-1. パッケージをダウンロード
wget https://dl.grafana.com/oss/release/grafana-5.4.2-1....
-2. 依存関係を解決させてインストール
yum localinstall grafana-5.4.2-1.x86_64.rpm
~
--依存関係があるパッケージは以下の通り。
========================================================...
Package Arch Version ...
========================================================...
Installing:
grafana x86_64 5.4.2-1 ...
Installing for dependencies:
fontconfig x86_64 2.13.0-4...
libfontenc x86_64 1.1.3-3....
urw-fonts noarch 2.4-16.e...
xorg-x11-font-utils x86_64 1:7.5-21...
Updating for dependencies:
freetype x86_64 2.8-12.e...
========================================================...
-3. サービスを起動させる
systemctl start grafana-server
-4. Grafanaアクセス
http://[IP]:3000/
~
初回ログイン時のID/PWは以下の通り。(ログイン後、パスワー...
~
|User|admin|
|Password|admin|
**プラグイン導入手順 [#dded062d]
***grafana-zabbix [#b94a8dfe]
Zabbix連携用のプラグイン~
-配布元
https://github.com/alexanderzobnin/grafana-zabbix
-インストール~
grafana-cli plugins install alexanderzobnin-zabbix-app
-Zabbixへのユーザ追加~
プラグインがZabbix APIへアクセスするためのユーザを作成す...
-ソースの追加~
Grafanaの管理画面よりプラグインを有効化した後、Zabbix API...
**設定 [#d457da76]
***Web Server越しのアクセス設定 [#n1760679]
-概要~
Apache Web Serverのリバースプロキシ(mod_proxy)を使用し...
-設定
--/etc/grafana/grafana.ini
【変更前】 ;root_url = http://localhost:3000
【変更後】 root_url = http://localhost:3000/grafana
--/etc/httpd/conf.d/grafana.conf(新規作成)
<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
-アクセス確認~
以下のURLでアクセスできることを確認する~
http://[Server IP]/grafana/
終了行:
目次~
#contents
*概要 [#r7a7c6a9]
Grafanaのインストール手順。
**環境情報 [#cbe67d79]
|OS|CentOS 7.4|
|Grafana|grafana-5.4.2-1.x86_64|
*インストール手順 [#z84a336c]
**CentOS 7.4 [#oca6ae8d]
CentOS 7.4に対してRPM形式のGrafanaをインストールする手順。~
以下はインターネットへの接続が可能な環境における手順。~
***手順 [#tb87cafd]
-1. パッケージをダウンロード
wget https://dl.grafana.com/oss/release/grafana-5.4.2-1....
-2. 依存関係を解決させてインストール
yum localinstall grafana-5.4.2-1.x86_64.rpm
~
--依存関係があるパッケージは以下の通り。
========================================================...
Package Arch Version ...
========================================================...
Installing:
grafana x86_64 5.4.2-1 ...
Installing for dependencies:
fontconfig x86_64 2.13.0-4...
libfontenc x86_64 1.1.3-3....
urw-fonts noarch 2.4-16.e...
xorg-x11-font-utils x86_64 1:7.5-21...
Updating for dependencies:
freetype x86_64 2.8-12.e...
========================================================...
-3. サービスを起動させる
systemctl start grafana-server
-4. Grafanaアクセス
http://[IP]:3000/
~
初回ログイン時のID/PWは以下の通り。(ログイン後、パスワー...
~
|User|admin|
|Password|admin|
**プラグイン導入手順 [#dded062d]
***grafana-zabbix [#b94a8dfe]
Zabbix連携用のプラグイン~
-配布元
https://github.com/alexanderzobnin/grafana-zabbix
-インストール~
grafana-cli plugins install alexanderzobnin-zabbix-app
-Zabbixへのユーザ追加~
プラグインがZabbix APIへアクセスするためのユーザを作成す...
-ソースの追加~
Grafanaの管理画面よりプラグインを有効化した後、Zabbix API...
**設定 [#d457da76]
***Web Server越しのアクセス設定 [#n1760679]
-概要~
Apache Web Serverのリバースプロキシ(mod_proxy)を使用し...
-設定
--/etc/grafana/grafana.ini
【変更前】 ;root_url = http://localhost:3000
【変更後】 root_url = http://localhost:3000/grafana
--/etc/httpd/conf.d/grafana.conf(新規作成)
<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
-アクセス確認~
以下のURLでアクセスできることを確認する~
http://[Server IP]/grafana/
ページ名: