Skip to content

Commit e899711

Browse files
[feat] metrics, give proto sections unique anchors
Makes linking more precise
1 parent 0824912 commit e899711

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src/data/markdown/docs/02 javascript api/07 k6-experimental/05 websockets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ A WebSocket instance also has the following properties:
4242
## Websocket metrics
4343

4444
k6 takes specific measurements for Websockets.
45-
For the complete list, refer to the [Metrics reference](/using-k6/metrics/reference).
45+
For the complete list, refer to the [Metrics reference](/using-k6/metrics/reference#websockets).
4646

4747
## Example
4848

src/data/markdown/docs/02 javascript api/11 k6-net-grpc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The k6 gRPC API is currently considered in beta and is subject to change. Future
2525
## gRPC metrics
2626

2727
k6 takes specific measurements for gRPC requests.
28-
For the complete list, refer to the [Metrics reference](/using-k6/metrics/reference).
28+
For the complete list, refer to the [Metrics reference](/using-k6/metrics/reference#grpc).
2929

3030
### Example
3131

src/data/markdown/translated-guides/en/02 Using k6/02 Metrics/000-reference.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ k6 always collects the following metrics, no matter what protocol the test uses:
2222
| data_sent | Counter | The amount of data sent. [Track data for an individual URL](/examples/track-transmitted-data-per-url) to track data for an individual URL. |
2323
| checks | Rate | The rate of successful checks.
2424

25-
## HTTP-specific built-in metrics
25+
## HTTP-specific built-in metrics {#http}
2626

2727
These metrics are generated only when the test makes HTTP requests.
2828

@@ -86,20 +86,20 @@ Apart from the usual HTTP specific metrics that k6 already tracks, the browser m
8686
| browser_loaded | Emitted when the page is fully loaded. |
8787

8888

89-
## Built-in WebSocket metrics
89+
## Built-in WebSocket metrics {#websockets}
9090

9191
`k6` emits the following metrics when interacting with a WebSocket service through the [`experimental`](/javascript-api/k6-experimental/websockets) or legacy websockets API.
9292

93-
| Metric name | Type | Description |
94-
| ------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------- |
95-
| ws_connecting | Trend | Total duration for the WebSocket connection request. |
96-
| ws_session_duration | Trend | Duration of the WebSocket session. Time between the start of the connection and the end of the VU execution. |
97-
| ws_sessions | Counter | Total number of started WebSocket sessions. |
98-
| ws_ping | Trend | Duration between a ping request and its pong reception |
99-
| ws_msgs_sent | Counter | Total number of messages sent through [Socket.send(data)](/javascript-api/k6-ws/socket/socket-send) |
100-
| ws_msgs_received | Counter | Total number of received messages [Socket.on('message', callback)](/javascript-api/k6-ws/socket/socket-on). |
93+
| Metric name | Type | Description |
94+
|---------------------|---------|--------------------------------------------------------------------------------------------------------------|
95+
| ws_connecting | Trend | Total duration for the WebSocket connection request. |
96+
| ws_session_duration | Trend | Duration of the WebSocket session. Time between the start of the connection and the end of the VU execution. |
97+
| ws_sessions | Counter | Total number of started WebSocket sessions. |
98+
| ws_ping | Trend | Duration between a ping request and its pong reception |
99+
| ws_msgs_sent | Counter | Total number of messages sent through [Socket.send(data)](/javascript-api/k6-ws/socket/socket-send) |
100+
| ws_msgs_received | Counter | Total number of messages received |
101101

102-
## Built-in gRPC metrics
102+
## Built-in gRPC metrics {#grpc}
103103

104104
k6 emits the following metrics when it interacts with a service through the [`gRPC`](https://k6.io/docs/javascript-api/k6-net-grpc/) API.
105105

0 commit comments

Comments
 (0)