MirrorNest
← すべてのガイド

InfluxDB

A purpose-built time-series database for metrics and events — the standard backend for storing sensor readings, IoT telemetry, and infrastructure monitoring data at high write volume.

対象: Any Docker hosttime-seriesmetricsDocker公式ホームページ ↗公式ドキュメント ↗
このガイドは上記リンク先にあるInfluxDB公式ドキュメントをもとに作成されています。ディストリビューションやプロジェクトのバージョンは時間とともに変わるため、本番サーバーでこれらのコマンドを実行する前に、必ず公式ドキュメントで正確なパッケージ名・バージョン名を確認してください。
  1. 1Run the official container

    docker run -d \ --name influxdb \ -p 8086:8086 \ -v ./influxdb/data:/var/lib/influxdb2 \ -v ./influxdb/config:/etc/influxdb2 \ --restart unless-stopped \ influxdb:2
  2. 2Complete the setup wizard

    The first visit walks through creating an admin user, an initial organization, and a bucket (InfluxDB's term for a named data retention policy/database).

    http://your-server-ip:8086
  3. 3Write and query data

    Data is written via the API/client libraries (or Telegraf as a collection agent) and queried with Flux or InfluxQL; Grafana is the most common way to visualize it.