Nomad Backup
by @macdesire
Query HashiCorp Nomad clusters. List jobs, nodes, allocations, evaluations, and services. Read-only operations for monitoring and troubleshooting.
clawhub install nomad-backupπ About This Skill
name: nomad version: 1.0.0 description: Query HashiCorp Nomad clusters. List jobs, nodes, allocations, evaluations, and services. Read-only operations for monitoring and troubleshooting. homepage: https://github.com/danfedick/nomad-skill metadata: {"clawdbot":{"emoji":"π¦","requires":{"bins":["nomad"]}}}
Nomad Skill
Query HashiCorp Nomad clusters using the nomad CLI. Read-only operations for monitoring and troubleshooting.
Requirements
nomad CLI installedNOMAD_ADDR environment variable set (or defaults to http://127.0.0.1:4646)NOMAD_TOKEN if ACLs are enabledCommands
Jobs
List all jobs:
nomad job status
Get job details:
nomad job status
Job history:
nomad job history
Job deployments:
nomad job deployments
Allocations
List allocations for a job:
nomad job allocs
Allocation details:
nomad alloc status
Allocation logs (stdout):
nomad alloc logs
Allocation logs (stderr):
nomad alloc logs -stderr
Follow logs:
nomad alloc logs -f
Nodes
List all nodes:
nomad node status
Node details:
nomad node status
Node allocations:
nomad node status -allocs
Evaluations
List recent evaluations:
nomad eval list
Evaluation details:
nomad eval status
Services
List services (Nomad native service discovery):
nomad service list
Service info:
nomad service info
Namespaces
List namespaces:
nomad namespace list
Variables
List variables:
nomad var list
Get variable:
nomad var get
Cluster
Server members:
nomad server members
Agent info:
nomad agent-info
JSON Output
Add -json to most commands for JSON output:
nomad job status -json
nomad node status -json
nomad alloc status -json
Filtering
Use -filter for expression-based filtering:
nomad job status -filter='Status == "running"'
nomad node status -filter='Status == "ready"'
Common Patterns
Find failed allocations
nomad job allocs | grep -i failed
Get logs from latest allocation
nomad alloc logs $(nomad job allocs -json | jq -r '.[0].ID')
Check cluster health
nomad server members
nomad node status
Environment Variables
NOMAD_ADDR β Nomad API address (default: http://127.0.0.1:4646)NOMAD_TOKEN β ACL token for authenticationNOMAD_NAMESPACE β Default namespaceNOMAD_REGION β Default regionNOMAD_CACERT β Path to CA cert for TLSNOMAD_CLIENT_CERT β Path to client cert for TLSNOMAD_CLIENT_KEY β Path to client key for TLSNotes
nomad-tui for interactive cluster management.nomad job run directly.π Tips & Best Practices
nomad-tui for interactive cluster management.nomad job run directly.