Nomploy Nomad Packs

← All packs

redis-exporter v0.1.0

Observability

Prometheus Redis Exporter — scrapes a Redis, Valkey, or Dragonfly server and exposes memory, keyspace, clients, and command metrics for Prometheus. Deployed as a stateless host-networked Nomad service; point it at any reachable instance. Pairs with the redis/valkey and monitoring packs.

nomad-pack run redis-exporter --registry nomploy
1 task http 9121 image oliver006/redis_exporter:latest
Variables 9
values.hcl

Save as values.hcl, edit, then run:

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

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

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

# The oliver006/redis_exporter image. Pin a tag in production.
image = "oliver006/redis_exporter:latest"

# Host port for the exporter (/metrics).
port = 9121

# Address of the Redis/Valkey/Dragonfly server to scrape (REDIS_ADDR). With host networking a co-located redis pack is reachable on 127.0.0.1.
redis_addr = "redis://127.0.0.1:6379"

# Password for the target server (REDIS_PASSWORD). Leave empty if auth is disabled.
redis_password = ""

# Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []

# The task resources.
resources = {
    cpu    = 200
    memory = 64
  }
NameTypeDefaultDescription
job_name string
"redis-exporter"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"oliver006/redis_exporter:latest"
The oliver006/redis_exporter image. Pin a tag in production.
port number
9121
Host port for the exporter (/metrics).
redis_addr string
"redis://127.0.0.1:6379"
Address of the Redis/Valkey/Dragonfly server to scrape (REDIS_ADDR). With host networking a co-located redis pack is reachable on 127.0.0.1.
redis_password key string
""
Password for the target server (REDIS_PASSWORD). Leave empty if auth is disabled.
constraints list
[]
Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
resources object
{
    cpu    = 200
    memory = 64
  }
The task resources.
Readme

redis-exporter

Prometheus Redis Exporter (oliver006) — scrapes a Redis, Valkey, or Dragonfly server and exposes memory, keyspace, clients, and per-command metrics for Prometheus.

Stateless, host-networked Nomad service. Point it at any reachable instance; with host networking a co-located redis / valkey / dragonfly pack is on 127.0.0.1.

Deploy

nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run redis-exporter --registry=nomploy

Configure

Variable Default Description
port 9121 Host port for /metrics.
redis_addr redis://127.0.0.1:6379 Target server (REDIS_ADDR).
redis_password "" Target password (REDIS_PASSWORD); empty if auth is off.
image oliver006/redis_exporter:latest Exporter image. Pin a tag in production.
resources { cpu = 200, memory = 64 } Task resources.

Scrape

- job_name: redis
  static_configs:
    - targets: ['127.0.0.1:9121']