Send Render Metrics
Stream the metrics of your Render services, databases, and Key Value instances to a Telemetry Machine metrics dataset.
Render can stream the metrics of a workspace over OpenTelemetry. Telemetry Machine stores them in a metrics dataset.
Before you start
- Your Render workspace must be on the Pro plan or higher.
- You must be an admin of the Render workspace.
- To create a dataset or an API key in Telemetry Machine, you must be an owner or an admin of the organization.
Create a metrics dataset
In the application
- Open the Datasets page.
- Select New dataset.
- Select Metrics.
- Select Next.
- In Dataset name, type a name for the dataset, such as
render-metrics. - Select Next.
- Select Create & Setup.
- Copy the API key from Your API Key. Keep it in a safe location.
With tm-cli
$ tm-cli datasets create --name render-metrics --type metrics
$ tm-cli api-keys create --name render --dataset render-metricsThe output shows the full key in api_key.api_key. It shows the full key one time only.
Add the destination in Render
- In the Render Dashboard, open your workspace, then select Observability.
- Under Metrics Stream, select + Add destination.
- In the provider list, select Custom.
- In the endpoint field, type the URL below, with the name of your dataset.
- In the API key field, paste the Telemetry Machine API key.
- Select Add destination.
https://api.telemetrymachine.com/datasets/render-metricsRender sends the key as Authorization: Bearer <key>. The dataset name in the URL takes the place of the X-Dataset-Name header.
Query the metrics
Render names its metrics render.service.*, render.postgres.*, and render.keyvalue.*, such as render.service.cpu.time and render.service.memory.usage. The service.name and service.id attributes tell the services apart, and service.instance.id tells their instances apart. See Render's metrics reference.
render.service.http.requests.total is a cumulative count of requests. render.service.http.requests.latency has the p50, p95, and p99 latency in seconds, with the quantile attribute.
Static sites, cron jobs, and one-off jobs have no metrics.