LoginSignup
1
1

More than 5 years have passed since last update.

grafanaをインストールしてみる。

Last updated at Posted at 2018-01-09

初心者ながらgrafanaをつかって見ようと思う。

【GrafanaLabo】
https://grafana.com/grafana/download

apt install grafanaでインストールできるけど、
公式から落とさないとバージョンが古すぎて…。(多分問題ないけど、どうせなら新しいのじゃないとバグとかあったらやだし。)

パッケージダウンロード。
wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_4.6.3_amd64.deb

インストール。
sudo dpkg -i grafana_4.6.3_amd64.deb

エラーがでる…。

どうやらフォントが必要らしい。
libfontconfig というパッケージが必要らしいけど、これを入れるために依存関係が結構あるらしく、
下記コマンドで必要なものを入れないとだめぽい

sudo apt install fonts-dejavu-core ttf-bitstream-vera fonts-freefont-ttf gsfonts-x11 fontconfig-config gsfonts xfonts-utils libfontenc1 libxfont1 x11-common xfonts-encodings

その後、
sudo apt install libfontconfig
で必要なパッケージが入る。

~$ sudo dpkg -i grafana_4.6.3_amd64.deb
(Reading database ... 56452 files and directories currently installed.)
Preparing to unpack grafana_4.6.3_amd64.deb ...
Unpacking grafana (4.6.3) over (4.6.3) ...
Setting up grafana (4.6.3) ...
Restarting grafana-server service... OK
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...

~$ netstat -nlpt
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -
tcp6       0      0 :::22                   :::*                    LISTEN      -
tcp6       0      0 :::3000                 :::*                    LISTEN      -

無事インストールできた…。
ブラウザ
プロセス見ると3000番でリスニングしてる。
admin/admin (←デフォルトのIDとPass)でログイン。

無事インストールできました。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1