Get CPU usage
render_get_cpuRetrieve CPU usage metrics for Render resources (services, Postgres, Redis). Specify resources, time range, and aggregation method to monitor performance.
Instructions
Get CPU usage. Get CPU usage for one or more resources. Calls GET /metrics/cpu 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()`. | |
| service | No | This parameter is deprecated. Please use `resource` instead (deprecated) | |
| instance | No | Instance ID to query. When multiple instance ID query params are provided, they are ORed together | |
| resource | No | Resource ID to query. When multiple resource query params are provided, they are ORed together. Resources can be service ids, Postgres ids, or Redis ids | |
| startTime | No | Epoch/Unix timestamp of start of time range to return. Defaults to `now() - 1 hour`. | |
| aggregationMethod | No | The aggregation method to apply to multiple time series | |
| resolutionSeconds | No | The resolution of the returned data |