System status and component health
GET/health/status
Returns per-component health status with system metrics. Requires authentication.
Responses
- 200
- 401
- 403
- 503
All components healthy.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Overall health status.
components
object
required
Per-component health status.
property name*
ComponentHealth
Component health status.
Error message when component is unhealthy.
Application version.
Time since server started.
nats
object
Connected NATS server URL.
NATS server version.
streams
object[]
JetStream stream statistics.
Stream name.
Number of messages in the stream.
Total bytes in the stream.
Number of consumers on the stream.
kv_buckets
object[]
KV bucket statistics.
KV bucket name.
Number of keys in the bucket.
Total bytes in the bucket.
jobs
object
Total number of jobs.
Number of unprocessed jobs.
Number of jobs currently processing.
Number of completed jobs.
Number of failed jobs.
Number of jobs in the dead letter queue.
{
"status": "ok",
"components": {},
"version": "0.1.0",
"uptime": "2h30m",
"nats": {
"url": "nats://localhost:4222",
"version": "2.10.0"
},
"streams": [
{
"name": "JOBS",
"messages": 42,
"bytes": 1024,
"consumers": 1
}
],
"kv_buckets": [
{
"name": "job-queue",
"keys": 10,
"bytes": 2048
}
],
"jobs": {
"total": 100,
"unprocessed": 5,
"processing": 2,
"completed": 90,
"failed": 3,
"dlq": 0
}
}
Unauthorized - API key required.
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Forbidden - Insufficient permissions.
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
One or more components unhealthy.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Overall health status.
components
object
required
Per-component health status.
property name*
ComponentHealth
Component health status.
Error message when component is unhealthy.
Application version.
Time since server started.
nats
object
Connected NATS server URL.
NATS server version.
streams
object[]
JetStream stream statistics.
Stream name.
Number of messages in the stream.
Total bytes in the stream.
Number of consumers on the stream.
kv_buckets
object[]
KV bucket statistics.
KV bucket name.
Number of keys in the bucket.
Total bytes in the bucket.
jobs
object
Total number of jobs.
Number of unprocessed jobs.
Number of jobs currently processing.
Number of completed jobs.
Number of failed jobs.
Number of jobs in the dead letter queue.
{
"status": "ok",
"components": {},
"version": "0.1.0",
"uptime": "2h30m",
"nats": {
"url": "nats://localhost:4222",
"version": "2.10.0"
},
"streams": [
{
"name": "JOBS",
"messages": 42,
"bytes": 1024,
"consumers": 1
}
],
"kv_buckets": [
{
"name": "job-queue",
"keys": 10,
"bytes": 2048
}
],
"jobs": {
"total": 100,
"unprocessed": 5,
"processing": 2,
"completed": 90,
"failed": 3,
"dlq": 0
}
}