HashiCorp Nomad · AsyncAPI Specification
HashiCorp Nomad Event Stream
Version 1.9.0
The Nomad Event Stream provides a way to subscribe to Job, Allocation, Evaluation, Deployment, Node, Node Pool, and Service changes in near real time. The /v1/event/stream endpoint streams events as newline- delimited JSON (ndjson) over an HTTP long-polling connection. Each response object may contain multiple events from a single Raft transaction or no events as a heartbeat to keep the connection alive. Consumers can filter by topic and key to receive only relevant events.
View Spec
View on GitHub
Workload OrchestrationContainer OrchestrationSchedulingInfrastructureDevOpsAsyncAPIWebhooksEvents
Channels
/event/stream?topic=Job
Receive job events
Subscribe to job lifecycle events including registration, deregistration, and updates.
/event/stream?topic=Allocation
Receive allocation events
Subscribe to allocation lifecycle events including placement, updates, and completion.
/event/stream?topic=Evaluation
Receive evaluation events
Subscribe to evaluation lifecycle events including creation, scheduling, and completion.
/event/stream?topic=Deployment
Receive deployment events
Subscribe to deployment lifecycle events including creation, promotion, failure, and success.
/event/stream?topic=Node
Receive node events
Subscribe to node lifecycle events including registration, status changes, drain, and deregistration.
/event/stream?topic=NodePool
Receive node pool events
Subscribe to node pool events including creation, updates, and deletion.
/event/stream?topic=Service
Receive service events
Subscribe to Nomad native service registration events.
/event/stream?topic=*
Receive all events
Subscribe to all event topics. Receives every event generated by the Nomad server.
Messages
JobRegistered
Job Registered
Emitted when a job is registered or updated in Nomad.
JobDeregistered
Job Deregistered
Emitted when a job is deregistered from Nomad.
JobBatchDeregistered
Job Batch Deregistered
Emitted when multiple jobs are deregistered at once.
AllocationCreated
Allocation Created
Emitted when a new allocation is placed on a node.
AllocationUpdated
Allocation Updated
Emitted when an allocation status or health changes.
EvaluationUpdated
Evaluation Updated
Emitted when an evaluation is created or its status changes.
DeploymentStatusUpdate
Deployment Status Update
Emitted when a deployment status changes.
DeploymentPromotion
Deployment Promotion
Emitted when canary allocations in a deployment are promoted.
NodeRegistered
Node Registered
Emitted when a new node registers with the cluster.
NodeDeregistered
Node Deregistered
Emitted when a node is deregistered from the cluster.
NodeStatusUpdate
Node Status Update
Emitted when a node status changes (ready, down, disconnected).
NodeDrainUpdate
Node Drain Update
Emitted when a node drain mode is enabled or disabled.
NodePoolUpdated
Node Pool Updated
Emitted when a node pool is created, updated, or deleted.
ServiceUpdated
Service Updated
Emitted when a Nomad service registration changes.
EventEnvelope
Event Envelope
The top-level envelope for all event stream messages.
Servers
https
production
{protocol}://{host}:{port}/v1
Nomad agent event stream endpoint. Uses HTTP long-polling with ndjson response format.