Metrics monitoring
Centrifugo supports reporting metrics in Prometheus format and can automatically export metrics to Graphite. For the full list of exposed metrics, OpenTelemetry export, and native histograms see the Observability chapter.
Prometheus
To enable Prometheus endpoint set prometheus.enabled to true:
{
"prometheus": {
"enabled": true
}
}
This will enable /metrics endpoint so the Centrifugo instance can be monitored by your Prometheus server.
Graphite
To enable automatic export to Graphite (via TCP):
{
"graphite": {
"enabled": true,
"host": "localhost",
"port": 2003
}
}
By default, stats will be aggregated over 10 seconds intervals inside Centrifugo and then pushed to Graphite over TCP connection.
If you need to change this aggregation interval use the graphite.interval option (a duration, default "10s").
Grafana dashboard
Check out Centrifugo official Grafana dashboard for Prometheus storage. You can import that dashboard to your Grafana, point to Prometheus storage – and enjoy visualized metrics.
Centrifugo PRO adds observability enhancements like user/channel tracing and analytics with ClickHouse.