Skip to main content
LangWatch exposes Prometheus metrics and health check endpoints for monitoring your self-hosted deployment.

Prometheus

The Helm chart includes an optional Prometheus instance that scrapes metrics from LangWatch components.

Enable Prometheus

What Gets Scraped

Access Prometheus

Port-forward to the Prometheus UI:

External Prometheus

To use an existing Prometheus instance instead of the chart-managed one:
You’ll need to configure your external Prometheus to scrape the LangWatch pods. Pods are annotated with:

Grafana

Connect Grafana to your Prometheus instance to visualize LangWatch metrics.

Key Dashboards

Set up dashboards for:
  • Trace throughput: traces ingested per minute
  • Worker queue depth: BullMQ queue backlog (indicates processing bottleneck)
  • ClickHouse query latency: p50/p95/p99 query times
  • Error rates: HTTP 5xx responses from App and Workers
  • Resource utilization: CPU and memory per component

Example Queries

Health & Readiness Checks

Endpoints

Kubernetes Probes

The Helm chart configures probes automatically. Default configuration:

Manual Health Check

Alerting Recommendations

Set up alerts for these critical conditions:

Example Alertmanager Rule

Prometheus Configuration Reference

Full Prometheus configuration in the Helm chart: