Skip to content
Live $100 credit at signup, up to $300 total Offer ends December 31, 2026 Get started →

InfluxDB 2

InfluxDB is a purpose-built time series database optimised for storing and querying metrics, events, and real-time analytics. It is commonly paired with Grafana for infrastructure monitoring and IoT data pipelines.

ComponentVersion
InfluxDB2.x
Ubuntu24.04 LTS

You can optionally set these when deploying InfluxDB from the marketplace. Leave any field blank to have a secure random value generated automatically.

VariableDescription
DOCKER_INFLUXDB_INIT_USERNAMEInitial admin username
DOCKER_INFLUXDB_INIT_PASSWORDInitial admin password
DOCKER_INFLUXDB_INIT_ORGInitial organisation name
DOCKER_INFLUXDB_INIT_BUCKETInitial bucket name
ssh ubuntu@<your-vm-ip>

On the first boot, a setup script runs automatically. It:

  • Starts InfluxDB and waits for it to become ready
  • Runs the initial setup with a randomly generated admin password and API token
  • Creates the default organisation (zsoftly) and bucket (default)
  • Saves all credentials to /etc/influxdb/credentials.txt

This takes under 60 seconds. Track progress:

journalctl -u influxdb-first-boot.service -f
sudo cat /etc/influxdb/credentials.txt

This file contains the admin username, password, organisation, default bucket, and API token. It is only readable by root.

Open a browser and navigate to:

http://<your-vm-ip>:8086

Log in with the admin username and password from the credentials file.

The influx CLI is pre-installed. Configure it with the credentials from the file:

TOKEN=$(sudo awk '/^Token:/{print $NF}' /etc/influxdb/credentials.txt)
influx config create \
--config-name default \
--host-url http://localhost:8086 \
--org zsoftly \
--token "$TOKEN" \
--active

Verify the connection:

influx ping
# Check service status
systemctl status influxdb
# Restart
sudo systemctl restart influxdb
# View logs
sudo journalctl -u influxdb -f

Configuration file: /etc/influxdb/config.toml

Port 8086 is accessible on the VM’s network interface. UFW is enabled and allows SSH (port 22) only by default.

To allow browser or API access from a specific IP:

sudo ufw allow from <trusted-ip> to any port 8086

To access the UI without opening the firewall, use an SSH tunnel:

# Run this on your local machine
ssh -L 8086:localhost:8086 ubuntu@<your-vm-ip>
# Then open in browser
http://localhost:8086