Skip to main content

Enabling metrics

Enable the Prometheus metrics endpoint in your Helm values:
This exposes /metrics on port 9090 of each pod.

Prometheus Operator — ServiceMonitor

If you use the Prometheus Operator (e.g. via kube-prometheus-stack), enable the ServiceMonitor:

Prometheus auto-discovery (pod annotations)

If you use annotation-based scraping rather than the Prometheus Operator, the chart adds pod annotations automatically when metrics.enabled: true:
When running multiple replicas, each pod exposes its own /metrics endpoint — Prometheus scrapes them independently and aggregates in queries.

Key metrics to alert on

Example PromQL queries

Grafana dashboards

Pre-built Grafana dashboards are available and can be auto-loaded by the Grafana sidecar:
This creates a ConfigMap with dashboard URLs that the Grafana sidecar fetches from GitHub. Requires the Grafana sidecar to be configured to watch the proxy-hopper namespace.

Logging in Kubernetes

Use JSON log format for compatibility with Kubernetes log aggregators (Fluentd, Fluent Bit, Datadog, GCP Cloud Logging):
Or via environment variable:
See Logging for the full log level and format reference.