Send logs and metrics from Render to Axiom
This page explains how to send logs and metrics from Render to Axiom.
Render is a unified cloud to build and run all your apps and websites. Axiom provides complete visibility into your Render projects, allowing you to monitor the behavior of your websites and apps.
You can send both log streams (over syslog/TLS through Vector) and service metrics streams (directly over OTLP) from Render to Axiom.
Prerequisites
- Create an Axiom account.
- Create a dataset in Axiom where you send your data.
- Create an API token in Axiom with permissions to ingest data to the dataset you have created.
Setup
Run a syslog receiver
Set up Vector with a TLS-enabled syslog source and an axiom sink. For the configuration, see Send data from syslog to Axiom over a secure connection. The receiver must be reachable from the internet so that Render can connect to it.
Create log stream in Render
In Render, create a log stream. For more information, see the Render documentation. As the log endpoint, use the host and port where your receiver listens, for example syslog.example.com:6514.
Back in your Axiom dataset, you see logs coming from Render.
Metrics streams
Render can push service metrics directly to Axiom over OpenTelemetry (OTLP) without running an intermediate collector.
- In Axiom, create a metrics dataset (dataset kind Metrics) and an API token with ingest permission for that dataset.
- In Render, create a metrics stream and select Custom as the provider. For workspace requirements and supported metrics, see the Render Metrics Streams documentation.
- Enter the following values:
- Endpoint:
https://AXIOM_DOMAIN/v1/ingest/DATASET_NAME - API key:
API_TOKEN
- Endpoint:
Render sends the API key as a Bearer token in the Authorization header and appends /v1/metrics to the endpoint URL.