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.
Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.
Source ↗ Project ↗ ★ 19.4k ⚑ Report an issue
Save as values.hcl, edit, then run:
# 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
}
| Name | Type | Default | Description |
|---|---|---|---|
| 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. |
No variables match.
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.
nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run cadvisor --registry=nomploy
| 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
monitoringpack 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.