Influxdbとは
メトリクスやイベントといった
時系列データを格納するのに適したデータストアだそうです。
メトリクス?
何かしらデータを収集して、
計算や分析を加えてわかりやすいデータに変換したものだそうです。
なるほど、
日々溜まっていくログのようなデータを
計算・分析・加工するため用のデータベースなのかしら
↓を参考にインストしました
raspberryPiにinfluxdb1.2をinstallする – 脳汁portal
手順
repositoryの設定
$ sudo apt-get update $ sudo apt-get install apt-transport-https $ curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - $ source /etc/os-release $ test $VERSION_ID = "7" && echo "deb https://repos.influxdata.com/debian wheezy stable" | sudo tee /etc/apt/sources.list.d/influxdb.list $ test $VERSION_ID = "8" && echo "deb https://repos.influxdata.com/debian jessie stable" | sudo tee /etc/apt/sources.list.d/influxdb.list $ test $VERSION_ID = "9" && echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
influxdbのインスト
$ sudo apt-get install influxdb
influxdb 起動
$ sudo service influxdb start
確認
プロセスを確認します
$ ps aux | grep influx
influxdb 3123 4.1 1.0 799740 9812 ? Ssl 02:44 0:00 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
こんな感じで出てればOKでしょうか
今回9系Stretchでインストしたのですが、
リポジトリをちょこっとかえるだけで行けました