Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 9831536

Browse files
authored
Add note about adding http_metrics middleware for http metrics (#162)
1 parent ed0795f commit 9831536

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/en/lab/metrics.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ The general metrics provided by the metrics plugin include:
3838

3939
### HTTP Metrics
4040

41+
> **Note**
42+
> To enable specific HTTP metrics, you need to add an HTTP middleware called `http_metrics` to the `http.middleware`
43+
> section of your configuration file.
44+
>
45+
> **Here is an example:**
46+
> ```yaml
47+
> http:
48+
> middleware: [ "http_metrics" ]
49+
> ```
50+
4151
The HTTP metrics provided by the metrics plugin include:
4252

4353
- `rr_http_requests_queue` - Total number of queued requests waiting for a worker.

0 commit comments

Comments
 (0)