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.
Save as values.hcl, edit, then run:
# 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
}
| Name | Type | Default | Description |
|---|---|---|---|
| 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. |
No variables match.
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.
nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run redis-exporter --registry=nomploy
| 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. |
- job_name: redis
static_configs:
- targets: ['127.0.0.1:9121']