Metrics (Prometheus)

1 min read

Metrics (Prometheus)

PgArachne exports Prometheus metrics on a dedicated metrics listener (default 127.0.0.1:9090) at /metrics, including standard Go runtime metrics and:

  • pgarachne_http_requests_total, pgarachne_http_request_duration_seconds
  • pgarachne_auth_requests_total, pgarachne_login_attempts_total
  • pgarachne_jsonrpc_requests_total
  • pgarachne_sse_clients, pgarachne_sse_channels, pgarachne_sse_client_drops_total
  • pgarachne_sse_events_forwarded_total — PostgreSQL NOTIFY events dispatched to SSE clients, labelled by database
  • pgarachne_sse_bytes_sent_total — bytes written to SSE response streams (payloads, heartbeats, preamble), labelled by database
  • pgarachne_sse_listen_errors_total — PostgreSQL LISTEN/connection errors and reconnect events, labelled by database and event type. A non-zero value warrants investigation — the hub drops all clients on reconnect so users see a brief interruption.