Skip to main content

GET /v1/agents/{agent_id}/health

Check the health status of a deployed agent.

Request

Path Parameters

agent_id
string
required
The unique identifier of the agent

Response

status
string
required
Overall health status: healthy, degraded, or unhealthy
checks
object
required
Individual health check results
version
string
Current agent version
uptime
number
Uptime in seconds

Examples

Basic Health Check

Response Examples

Healthy Agent

Degraded Agent

Health Check Logic

Status is determined by:
  1. Healthy: All checks pass
  2. Degraded: Some checks show warnings but agent is functional
  3. Unhealthy: Critical checks fail

Monitoring Integration

Automated Monitoring

Prometheus Integration

Best Practices

  1. Regular Monitoring: Check health every 30-60 seconds
  2. Set Alerts: Alert on status changes
  3. Track Trends: Monitor resource usage over time
  4. Implement Retries: Handle temporary network issues

See Also