MirrorNest
← Tous les 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.

Système : Any Docker hosttime-seriesmetricsDockerSite officiel ↗Documentation officielle ↗
Ce guide est élaboré à partir de la documentation officielle de InfluxDB, dont le lien figure ci-dessus — vérifiez toujours les noms exacts des paquets/versions avant d'exécuter ces commandes sur un serveur de production, car les versions de la distribution et du projet évoluent avec le temps.
  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.