File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/data/markdown/docs/02 javascript api/12 k6-ws Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,8 @@ excerpt: 'Socket is a WebSocket client to interact with a WebSocket connection.'
17
17
18
18
### WebSocket built-in metrics
19
19
20
- ` k6 ` will automatically collect some metrics when interacting with a WebSocket service through the ` k6/ws ` API.
21
-
22
- | Metric name | Type | Description |
23
- | ------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------- |
24
- | ws_connecting | Trend | Total duration for the WebSocket connection request. |
25
- | ws_session_duration | Trend | Duration of the WebSocket session. Time between the start of the connection and the end of the VU execution. |
26
- | ws_sessions | Counter | Total number of started WebSocket sessions. |
27
- | ws_ping | Trend | Duration between a ping request and its pong reception |
28
- | ws_msgs_sent | Counter | Total number of messages sent through [ Socket.send(data)] ( /javascript-api/k6-ws/socket/socket-send ) |
29
- | ws_msgs_received | Counter | Total number of received messages [ Socket.on('message', callback)] ( /javascript-api/k6-ws/socket/socket-on ) . |
20
+ ` k6 ` automatically collects metrics when interacting with a WebSocket service through the ` k6/ws ` API.
21
+ Review the list in the [ metrics reference] ( /using-k6/metrics/reference#websockets ) .
30
22
31
23
Check out the [ Results output article] ( /get-started/results-output ) for more information about how to process the metric information.
32
24
You can’t perform that action at this time.
0 commit comments