MirrorNest
← All guides

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.

Target: Any Docker hosttime-seriesmetricsDockerOfficial homepage ↗Official docs ↗
This guide is synthesized from InfluxDB's own official documentation, linked above — always cross-check exact package/version names there before running these commands on a production server, since distro and project versions move over time.
  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.