Metrics (Prometheus)
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_secondspgarachne_auth_requests_total,pgarachne_login_attempts_totalpgarachne_jsonrpc_requests_totalpgarachne_sse_clients,pgarachne_sse_channels,pgarachne_sse_client_drops_totalpgarachne_sse_events_forwarded_total— PostgreSQL NOTIFY events dispatched to SSE clients, labelled by databasepgarachne_sse_bytes_sent_total— bytes written to SSE response streams (payloads, heartbeats, preamble), labelled by databasepgarachne_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.