You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/metrics.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,4 +68,18 @@ These are custom application metrics specific to the QuickPizza application, imp
68
68
69
69
-`quickpizza_server_http_request_duration_seconds_gauge`: Duration of HTTP request processing (Gauge).
70
70
71
-
-`quickpizza_server_http_requests_total`: Total number of HTTP requests received (Counter metric).
71
+
-`quickpizza_server_http_requests_total`: Total number of HTTP requests received (Counter metric).
72
+
73
+
## QuickPizza WebSocket Metrics
74
+
75
+
`quickpizza_server_ws_*`
76
+
77
+
These metrics track WebSocket connection lifecycle and message processing. They are separate from HTTP metrics because WebSocket connections are long-lived and would skew HTTP latency results.
78
+
79
+
-`quickpizza_server_ws_connections_active`: Number of currently active WebSocket connections (Gauge).
80
+
81
+
-`quickpizza_server_ws_connection_duration_seconds`: Duration of WebSocket connections in seconds (Native Histogram).
82
+
83
+
-`quickpizza_server_ws_messages_received_total`: Total number of messages received via WebSocket (Counter).
84
+
85
+
-`quickpizza_server_ws_message_processing_duration_seconds`: Time to process and broadcast incoming WebSocket messages (Native Histogram).
0 commit comments