README: update prometheus section

This commit is contained in:
Joakim Frostegård 2023-02-26 12:14:16 +01:00
parent f1d0901416
commit 9d10a7b7b3

View file

@ -127,21 +127,20 @@ in emitting of an info-level log message.
Exporting [Prometheus](https://prometheus.io/) metrics is supported.
To use, activate the prometheus endpoint in the configuration file:
##### aquatic_http and aquatic_ws
```toml
[metrics]
run_prometheus_endpoint = true
prometheus_endpoint_address = "0.0.0.0:9000"
```
Activate the prometheus endpoint in the configuration file:
##### aquatic_udp
```toml
[statistics]
interval = 5
run_prometheus_endpoint = true
prometheus_endpoint_address = "0.0.0.0:9000"
```
##### aquatic_http and aquatic_ws
```toml
[metrics]
run_prometheus_endpoint = true
prometheus_endpoint_address = "0.0.0.0:9000"
```