Skip to main content

Metrics and health checks

Workspace members can inspect database metrics and health. Current metrics are available for active or paused database records, but the engine must still be reachable for collection to succeed.

Read current metrics​

The current-metrics response combines database_id, database_name, status and engine measurements. Storage and connection usage are useful starting points. PostgreSQL-specific counters may not describe Redis/MongoDB workloads meaningfully; interpret metrics for the selected engine.

Collection failure returns 502 instead of fabricating zero usage. Alert on collection failures separately from actual low activity.

Read history​

History accepts hours, default 24 and capped at 168. Nonnumeric values fall back to 24; supply a positive integer explicitly. The response contains database_id, hours, data_points and a metrics array of stored samples.

An empty history means no samples were returned for that window. It does not establish continuous uptime or zero traffic. Sampling gaps and deployment collection availability matter.

Distinguish health endpoints​

CheckMeaning
Public /e/v1/health/Management API can respond
Database /health/Server-side engine connectivity check for the resource
Native driver operation from your applicationYour actual network, TLS, credentials and query path work

Database health can return HTTP 200 with an unhealthy body. Inspect status, connection, accepting_connections and message, plus the database resource state. A server-side check is not a substitute for testing from your application’s network.

Metrics and health API.