Skip to content
HelicarrierDevelopers

Get database metrics

Read engine-specific database metrics, grouped for inspection.

GET/api/services/{id}/db/metricsHTTPS
Request & response examples
Request exampleServer-side
curl --fail-with-body --request GET \
'https://app.helicarrier.xyz/api/services/YOUR_ID/db/metrics' \
-H "Authorization: Bearer $HELI_API_KEY"
Response example200
{
"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

idstringrequired

Database service id.

Query parameters

lightstringoptional

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.

enginestring

Database engine key.

runningboolean

Whether the database is running.

groupsarray

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