時系列データベースを試そうと思ったら、InfluxDBの現行版である2系は32bit非対応だった罠
この記事は戒めのために残しておく
実際のところ
- influxdb2-2.0.7-arm64
で作業。
そもそもTSDBとは何なのだ
InflexDBの公式の説明によると……
What is a time series database?
Here’s a brief time series database definition: A time series database (TSDB) is a database optimized for time-stamped (time series) data and for measuring change over time.
InflexDB公式の声明によれば、そんなTSDBの中で一番勢いがあるとのこと。
InflexDBではデフォでREST APIがついてたりしてイマドキな構成。
導入
Install InfluxDB | InfluxDB OSS 2.0 Documentationを参考に作業……しようと思ったらarmhf版が何故かなく、単純な置き換えではできなかった。
有難い事に先駆者がいたので、写経しながら進める。
Raspberry Pi InfluxDB installation · GitHub
作業中のバージョン確認
$ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
鍵情報の登録
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
apt-transport-httpsちう便利なパッケージを経由して、Influxdbのリポジトリをリストに登録
sudo apt install apt-transport-https echo "deb https://repos.influxdata.com/debian buster stable" | sudo tee /etc/apt/sources.list.d/influxdb.list sudo apt update
無事リポジトリが登録されるので、
$ sudo apt install influxdb
sudo service influxdb start
参考もと
Raspberry Pi 4でInfluxDBを稼働させる
Raspberry Pi InfluxDB installation · GitHub
以下、うまくいかなった時のメモ。
検索で引っかかった人用?