Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Prometheus metrics

The relay exposes /metrics, /livez, and /readyz on the configured metrics address (default 0.0.0.0:9090). /livez answers whether the process is alive; /readyz answers whether it can serve owned pipelines. A pipeline failure must remove a pod from service, not cause a restart loop.

Core metrics

All relay metrics use the pg_tide_relay_ prefix. Labels are only documented where emitted by the relay (pipeline, direction, and metric-specific labels).

MetricMeaning
pg_tide_relay_messages_published_totalSuccessful sink publishes
pg_tide_relay_messages_consumed_totalMessages read from sources
pg_tide_relay_publish_errors_totalFailed publish attempts
pg_tide_relay_pipeline_healthy1 when pipeline is healthy, 0 otherwise
pg_tide_relay_consumer_lagPending source messages
pg_tide_relay_delivery_latency_secondsDelivery latency histogram
pg_tide_relay_retry_stateCurrent retry/backoff state
pg_tide_relay_dlq_depthUnresolved DLQ entries
pg_tide_relay_owned_pipelinesPipelines owned by this relay
pg_tide_relay_owned_async_tasksDirectly owned long-lived relay tasks; kind is fixed-cardinality
pg_tide_relay_pool_connectionsPool connections by state

See pg-tide/dashboards/relay-health.json for the core dashboard and pg-tide/dashboards/alerts.yaml for actionable thresholds. No-data is unknown, never healthy. Use the operations runbooks for incident response.

sum by (pipeline) (rate(pg_tide_relay_messages_published_total[5m]))
pg_tide_relay_consumer_lag
histogram_quantile(0.99, sum by (le,pipeline) (rate(pg_tide_relay_delivery_latency_seconds_bucket[5m])))