Nomploy Nomad Packs

← All packs

glances v0.1.0

Observability

Glances — a cross-platform system monitor with a live web dashboard (CPU, memory, disk, network, processes, and Docker containers) and a REST API. Deployed as a stateless host-networked Nomad service. A lightweight at-a-glance view; pair with the monitoring pack for full Prometheus history.

nomad-pack run glances --registry nomploy
1 task http 61208 image nicolargo/glances:latest-full
Variables 8
values.hcl

Save as values.hcl, edit, then run:

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

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

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

# The Glances container image (use a *-full tag for the web UI + all sensors). Pin a tag in production.
image = "nicolargo/glances:latest-full"

# Host port for the Glances web dashboard / REST API.
port = 61208

# Mount the Docker socket read-only so Glances shows per-container stats.
docker_socket = true

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

# The task resources.
resources = {
    cpu    = 300
    memory = 256
  }
NameTypeDefaultDescription
job_name string
"glances"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"nicolargo/glances:latest-full"
The Glances container image (use a *-full tag for the web UI + all sensors). Pin a tag in production.
port number
61208
Host port for the Glances web dashboard / REST API.
docker_socket bool
true
Mount the Docker socket read-only so Glances shows per-container stats.
constraints list
[]
Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
resources object
{
    cpu    = 300
    memory = 256
  }
The task resources.
Readme

glances

Glances — a cross-platform system monitor with a live web dashboard (CPU, memory, disk, network, processes, Docker containers) and a REST API.

Stateless, host-networked Nomad service. Runs with pid_mode = host so stats reflect the whole node, and (by default) mounts the Docker socket read-only for per-container stats.

Deploy

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

Configure

Variable Default Description
port 61208 Web dashboard / REST API port.
docker_socket true Mount /var/run/docker.sock:ro for container stats.
image nicolargo/glances:latest-full Image (-full includes the web UI + all sensors).
resources { cpu = 300, memory = 256 } Task resources.

A lightweight at-a-glance view of a single node (whichever one the alloc lands on). For multi-node history and alerting, use the monitoring pack. Glances has no built-in auth — front it with TLS/auth.