Skip to content
Helicarrier Developers

Get database metrics

Read engine-specific database metrics, grouped for inspection.

GET /api/services/{id}/db/metrics HTTPS
Request & response examples
Request example Server-side
curl --fail-with-body --request GET \
'https://app.helicarrier.xyz/api/services/YOUR_ID/db/metrics' \
-H "Authorization: Bearer $HELI_API_KEY"
Response example 200
{
"engine": "postgres",
"running": true,
"groups": []
}

Illustrative values · selected fields

Authorization

An account key with access to the resource. Project and service keys do not authorize this operation.

Authorization: Bearer <key> Key setup ↗

Path parameters

id string required

Database service id.

Query parameters

light string optional

Pass 1 for the cheap subset (skips the queries that touch the engine), when you only need size and connection counts.

Response 200

Returns metrics grouped by engine. Inspect the error field when present: this endpoint can return HTTP 200 when the database cannot be reached.

Examples show selected response fields with illustrative values. Your response can contain additional fields.

engine string

Database engine key.

running boolean

Whether the database is running.

groups array

Engine-specific metric groups.

Errors

401

The API key is missing, invalid, or revoked.

403

The caller or key scope does not permit this operation.

Error handling and safe retries
ALSO AVAILABLE VIA MCP

get_db_metrics

Required MCP arguments: id. Send path, query, and body fields together as tool arguments.

Connect your agent ↗