Skip to content

Check health

GET
/api/health
curl --request GET \
--url http://127.0.0.1:9090/api/health \
--header 'X-Request-Id: 4f1c2b0e-8a7d-4c51-9e2f-3a6b8d0c1e7f'

Whether the instance and its database work: ok when it takes work (ready) and its session to the database is up, and nothing else: not its name, version or environment, which GET /api/instance tells behind the login. It answers 200 whenever it answers at all, while the instance starts too (starting), so read the body: for a load balancer use GET /api/ready, for a liveness probe GET /livez. It needs no login. The session is the database’s answer: the call asks nothing of the database, and updates the houradvantage_database_up metric.

  • None
X-Request-Id
string
<= 128 characters /^[A-Za-z0-9._:-]+$/

An id to follow the request by: answered back in X-Request-Id, and in the log, the audit trail and the events the request causes. 1 to 128 letters, digits, -, _, . or :; anything else is replaced by a new id.

Example
4f1c2b0e-8a7d-4c51-9e2f-3a6b8d0c1e7f

Whether the instance works.

Media typeapplication/json

Whether an instance works, as anyone may ask (GET /api/health, with no login): nothing of which instance, version or environment it is.

object
ok
required

It takes work (ready) and its database answers.

boolean
ready

It takes work: what GET /api/ready answers 200 for.

boolean
starting

True while the instance starts (reaches its database, migrates it, loads its devices); absent once it has started.

boolean | null
Example
{
"ok": true,
"ready": true
}