Metrics

Return the latest per-database metric values for a Postgres or MariaDB service.

Changed on

Postgres: groups pg_stat_database and size metrics by datname (size, cache-hit ratio, commits, tuple activity). MariaDB: groups storage metrics by schema (data, index and free-space size, table count, estimated rows). The UI shows this as a breakdown table instead of collapsing every database into one value. Engines without per-database series get an empty list while the metrics store is available; without it the endpoint returns 503.

get/external-services/{id}/metrics/by-database

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

idinteger required

External service ID

Response

Per-database metric breakdown; empty for engines without per-database series

Changes