Databases

Metrics history: size, connections, operations per second, cache hit ratio and memory (samples for 24h, hourly for 7d/30d/90d)

get/databases/{databaseId}/metrics

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/databases/{databaseId}/metrics
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

databaseIdstring uuid required

Query parameters

range'24h' | '7d' | '30d' | '90d'

Response

Metrics

databaseIdstring uuid required
engine'postgresql' | 'mysql' | 'mariadb' | 'redis' | 'mongodb' required
range'24h' | '7d' | '30d' | '90d' required
resolution'5m' | '1h' required

24h: every sample; 7d/30d/90d: hourly

intervalSecondsinteger required

how often samples are collected

collectingboolean required

metrics are collected on this server

statusstring required

database status

opsUnit'transactions' | 'queries' | 'operations' | 'commands' required
cacheKind'buffer_cache' | 'buffer_pool' | 'wiredtiger_cache' | 'keyspace' required
lastSampleAtstring nullable required

ISO-8601 timestamp

lastErrorstring nullable required

why the last collection for this team failed, if it did

Changes

No recorded changes to this operation across all 1 revision of this API.