Skip to content

Metrics API

GET /metrics

Returns Prometheus text format metrics from the gateway process.

bash
curl http://localhost:8080/metrics

The endpoint is implemented by crates/nexis-gateway and is registered beside GET /health.

Registered Metric Families

FamilyPurpose
nexis_build_infoGateway package version and commit label
nexis_http_requests_totalHTTP request count by method and path
nexis_http_responses_totalHTTP response count by method, path, and status
nexis_http_latency_secondsHTTP request latency histogram
nexis_connections_activeActive WebSocket connections
nexis_connections_totalTotal WebSocket connections established
nexis_connection_errorsConnection errors by type
nexis_pool_connections_activeActive sharded-pool connections
nexis_pool_connections_peakPeak sharded-pool connection count since start
nexis_pool_connections_totalTotal sharded-pool connections created
nexis_pool_messages_sent_totalBroadcast messages sent through the pool
nexis_pool_messages_dropped_totalBroadcast messages dropped by the pool
nexis_messages_received_totalMessages received
nexis_messages_sent_totalMessages sent
nexis_messages_by_typeMessages grouped by type
nexis_message_latency_secondsMessage processing latency histogram
nexis_message_size_bytesMessage size histogram
nexis_rooms_activeActive rooms
nexis_rooms_created_totalRooms created since start
nexis_room_membersMember count by room
nexis_operation_throughput_totalDomain operation throughput
nexis_operation_errors_totalDomain operation errors
nexis_operation_latency_secondsDomain operation latency histogram
nexis_ai_requests_totalAI provider request count
nexis_ai_errors_totalAI provider errors
nexis_ai_latency_secondsAI provider latency histogram
nexis_ai_tokens_totalAI provider token usage

Dashboards and Alerts

Use the operations guide for Prometheus, Grafana, and alert rule setup:

Source-available under the Wisdoverse Nexus Business Source License 1.1.