Nomad Autoscaler HTTP API
The Nomad Autoscaler exposes a small, simple API to be used for health checking the agent and obtaining metric data.
Health API
This endpoint can be used to query the Nomad Autoscaler agent aliveness. If the agent is alive, the request will return a 200 OK, otherwise it will return a 503 ServiceUnavailable.
Method | Path | Produces |
---|---|---|
GET | /v1/health | application/json |
Sample Request
Metrics API
The /metrics
endpoint returns metrics for the current Nomad Autoscaler process.
Method | Path | Produces |
---|---|---|
GET | /v1/metrics | application/json |
Parameters
format
(string: "")
- Specifies the metrics format to be other than the JSON default. Currently, onlyprometheus
is supported as an alternative format. This is specified as a query string parameter.
Sample Request
Sample Response