GrowthForecastをインストール
Fluentdで集めたログをGrowthForecastでリアルタイムにグラフ化したいのでとりあえずインストールした。
まずは必要なパッケージがインストールされているか確認
- glib
- xml2
- pango
- cairo
cpanmをダウンロード。
curl -LOk http://xrl.us/cpanm chmod +x cpanm
local::libも入れておくと便利らしいので入れておく。
cpanm local::lib
RRDtoolのインストール
cpanm Alien::RRDtool
GrowthForecastのインストール
git clone git://github.com/kazeburo/GrowthForecast.git cd GrowthForecast cpanm -lextlib --installdeps .
GrowthForecastの起動
perl growthforecast.pl --port 5123
起動しようとしたら↓こんなエラーが出た。
「Can't locate RRDs.pm in @INC(省略)」
perl-rrdtoolをいれればいいらしい。
yum -y install perl-rrdtool
これで起動できる。
perl growthforecast.pl --port 5123
指定ポートでブラウザからアクセスしたら画面表示される。 http://(IPaddress):5123
次は fluentdから growthforecastにデータ渡してグラフ表示するところをやるべ。