Get active connection count
render_get_active_connectionsRetrieve the number of active connections for Postgres databases or Redis instances on Render. Specify resource IDs and time range to get connection metrics.
Instructions
Get active connection count. Get the number of active connections for one or more Postgres databases or Redis instances. Calls GET /metrics/active-connections on the Render Public API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endTime | No | Epoch/Unix timestamp of end of time range to return. Defaults to `now()`. | |
| resource | No | Resource ID to query. When multiple resource query params are provided, they are ORed together. Resources Postgres ids or Redis ids | |
| startTime | No | Epoch/Unix timestamp of start of time range to return. Defaults to `now() - 1 hour`. | |
| resolutionSeconds | No | The resolution of the returned data |