Nomploy Nomad Packs

← All packs

influxdb v0.1.0

Observability

InfluxDB 2 — a purpose-built time-series database with a built-in UI, dashboards, and the Flux/InfluxQL query languages. Great for metrics and IoT sensor data. Deployed as a host-networked Nomad service that initializes an admin/org/bucket on first boot, with a persistent volume.

nomad-pack run influxdb --registry nomploy
1 task http 8086 1 volume image influxdb:2
Variables 13
values.hcl

Save as values.hcl, edit, then run:

nomad-pack run influxdb -f values.hcl --registry nomploy
# The name of the Nomad job.
job_name = "influxdb"

# The Nomad namespace to deploy into.
namespace = "default"

# The datacenters to deploy to.
datacenters = ["*"]

# The InfluxDB 2 container image. Pin a tag in production.
image = "influxdb:2"

# Host port for the InfluxDB HTTP API + UI.
port = 8086

# Initial admin username (created on first boot in setup mode).
admin_user = "admin"

# Initial admin password (min 8 chars). CHANGE THIS.
admin_password = "changeme123"

# Initial organization name.
org = "nomploy"

# Initial bucket name.
bucket = "default"

# Initial admin API token (clients authenticate with it). CHANGE THIS — treat it as a secret.
admin_token = "changeme-admin-token"

# Docker named volume for /var/lib/influxdb2 (time-series data + config). InfluxDB runs as root, so a fresh volume is writable. Back it up.
data_volume = "influxdb_data"

# Placement constraints — pin to one node so the local volume stays put. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []

# The task resources.
resources = {
    cpu    = 500
    memory = 512
  }
NameTypeDefaultDescription
job_name string
"influxdb"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"influxdb:2"
The InfluxDB 2 container image. Pin a tag in production.
port number
8086
Host port for the InfluxDB HTTP API + UI.
admin_user string
"admin"
Initial admin username (created on first boot in setup mode).
admin_password set me string
"changeme123"
Initial admin password (min 8 chars). CHANGE THIS.
org string
"nomploy"
Initial organization name.
bucket string
"default"
Initial bucket name.
admin_token set me string
"changeme-admin-token"
Initial admin API token (clients authenticate with it). CHANGE THIS — treat it as a secret.
data_volume string
"influxdb_data"
Docker named volume for /var/lib/influxdb2 (time-series data + config). InfluxDB runs as root, so a fresh volume is writable. Back it up.
constraints list
[]
Placement constraints — pin to one node so the local volume stays put. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
resources object
{
    cpu    = 500
    memory = 512
  }
The task resources.
Readme

influxdb

InfluxDB 2 — a purpose-built time-series database with a built-in UI, dashboards, tasks, and the Flux/InfluxQL query languages. Ideal for metrics and IoT sensor data. Host-networked Nomad service that initializes itself on first boot, with a persistent volume.

Usage

nomad-pack registry add nomploy github.com/Nomploy/nomad-packs \
  --var admin_password=<8+ chars> --var admin_token=<secret>
nomad-pack run influxdb --registry nomploy --var admin_password=<8+ chars> --var admin_token=<secret>

In nomploy: create a Compose service, type Nomad Pack, pack influxdb, set admin_password + admin_token, then Deploy. Open http://<node-ip>:8086.

Key variables

Variable Default Notes
image influxdb:2 Pin a tag in production.
port 8086 HTTP API + UI.
admin_user / admin_password admin / changeme123 First-boot admin (password ≥ 8 chars). Change it.
org / bucket nomploy / default Initial org + bucket.
admin_token changeme-admin-token API token clients use. Change it.
data_volume influxdb_data Time-series data + config. Back it up.
constraints [] Pin to a node so the local volume stays put.
resources cpu 500 / mem 512 Raise for high ingestion.

Notes