Skip to main content
Meridian exposes a Prometheus-compatible metrics endpoint at GET /metrics (no authentication required). This guide sets up a full observability stack with Docker Compose.

Metrics exposed

op_type is either http (REST) or ws (WebSocket).

Docker Compose stack

Create a docker-compose.monitoring.yml alongside your existing docker-compose.yml:

Prometheus config

Create prometheus.yml next to your compose file:

Start the stack

  • Meridian → http://localhost:3000
  • Prometheus → http://localhost:9090
  • Grafana → http://localhost:3001 (admin / admin)

Grafana dashboard

After logging into Grafana:
  1. Go to Connections → Data sources → Add data source
  2. Select Prometheus, set URL to http://prometheus:9090
  3. Click Save & test

Useful queries

Ops per second (by namespace)
Active WebSocket connections
Top CRDTs by op count
HTTP vs WebSocket op breakdown
Merge latency P99 (by namespace)
Merge latency P50
Active subscriptions

Alerts

Example Prometheus alert rules — save as alerts.yml and add to your prometheus.yml: