Metrics Endpoint
PowerSync exposes instance metrics via a Prometheus-compatible endpoint. This allows you to integrate with Prometheus or other monitoring systems that scrape Prometheus endpoints.It’s not recommended to scrape the Prometheus endpoint manually, we suggest using Prometheus or other compatible tools. PowerSync does not currently support pushing to OpenTelemetry collectors.
Configuration
- To enable metrics, update your PowerSync YAML file to include the
prometheus_port
and set a port number.
powersync.yaml
- Update your Docker compose file to forward the
prometheus_port
.
docker-compose.yaml
If you’re running multiple containers (e.g. splitting up replication containers and API containers) you need to scrape the metrics separately for each container.