Nomploy Nomad Packs

← All packs

cadvisor v0.1.0

Observability

cAdvisor — Google's Container Advisor: exposes live per-container resource usage and performance metrics (CPU, memory, network, filesystem) with a built-in UI and a Prometheus endpoint. Deployed as a host-networked Nomad service that reads the host and Docker read-only. Run one per node and scrape it with the monitoring pack.

nomad-pack run cadvisor --registry nomploy
…or one line (add registry + run)
curl -fsSL https://packs.nomploy.com/install.sh | sh -s -- cadvisor

Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.

1 task http 8080 image gcr.io/cadvisor/cadvisor:latest tracks :latest image bumped today
Variables 7
values.hcl

Save as values.hcl, edit, then run:

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

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

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

# The cAdvisor container image. Pin a tag in production.
image = "gcr.io/cadvisor/cadvisor:latest"

# Host port for the cAdvisor UI / Prometheus metrics (--port).
port = 8080

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

# Resources for the cAdvisor task.
resources = {
    cpu    = 300
    memory = 256
  }
NameTypeDefaultDescription
job_name string
"cadvisor"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"gcr.io/cadvisor/cadvisor:latest"
The cAdvisor container image. Pin a tag in production.
port number
8080
Host port for the cAdvisor UI / Prometheus metrics (--port).
constraints list
[]
Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
resources object
{
    cpu    = 300
    memory = 256
  }
Resources for the cAdvisor task.
Readme

cadvisor

cAdvisor (Container Advisor) — Google's tool for live per-container resource usage and performance metrics: CPU, memory, network, and filesystem, with a built-in UI and a Prometheus metrics endpoint. The standard companion for container monitoring dashboards.

Single host-networked Nomad service that reads the host and Docker read-only.

Deploy

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

Configure

Variable Default Description
port 8080 UI / metrics port (--port).
image gcr.io/cadvisor/cadvisor:latest Container image. Pin a tag in production.
resources { cpu = 300, memory = 256 } Task resources.

Scrape http://<node-ip>:8080/metrics from Prometheus (the monitoring pack) and chart it in Grafana. The job bind-mounts /, /var/run, /sys, and /var/lib/docker (mostly read-only) so cAdvisor can see all containers. Run one instance per node (pin with constraints). The endpoint is unauthenticated — keep it internal.

Note: the monitoring pack already bundles cAdvisor as a sidecar; use this standalone pack when you want cAdvisor on nodes that aren't running that all-in-one stack.