mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
README: move and update prometheus section
This commit is contained in:
parent
b5d5b70d91
commit
67ab93b5f0
1 changed files with 20 additions and 23 deletions
43
README.md
43
README.md
|
|
@ -124,6 +124,26 @@ parsing fails, the program exits. Later failures result in in emitting of
|
||||||
an error-level log message, while successful updates of the access list result
|
an error-level log message, while successful updates of the access list result
|
||||||
in emitting of an info-level log message.
|
in emitting of an info-level log message.
|
||||||
|
|
||||||
|
#### Prometheus
|
||||||
|
|
||||||
|
`aquatic_http` and `aquatic_ws` support exporting [Prometheus](https://prometheus.io/) metrics.
|
||||||
|
|
||||||
|
Pass the `prometheus` feature when building:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
. ./scripts/env-native-cpu-without-avx-512
|
||||||
|
cargo build --release -p aquatic_ws --features "prometheus"
|
||||||
|
cargo build --release -p aquatic_http --features "prometheus"
|
||||||
|
```
|
||||||
|
|
||||||
|
Then activate the prometheus endpoint in the configuration file:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[metrics]
|
||||||
|
run_prometheus_endpoint = true
|
||||||
|
prometheus_endpoint_address = "0.0.0.0:9000"
|
||||||
|
```
|
||||||
|
|
||||||
### Running
|
### Running
|
||||||
|
|
||||||
If you're running `aquatic_http` or `aquatic_ws`, please make sure locked memory
|
If you're running `aquatic_http` or `aquatic_ws`, please make sure locked memory
|
||||||
|
|
@ -232,29 +252,6 @@ proxied to IPv4 requests, and IPv6 requests to IPv6 requests.
|
||||||
|
|
||||||
More details are available [here](./documents/aquatic-ws-load-test-2022-03-29.pdf). Please note that request workers have been renamed to swarm workers.
|
More details are available [here](./documents/aquatic-ws-load-test-2022-03-29.pdf). Please note that request workers have been renamed to swarm workers.
|
||||||
|
|
||||||
#### Prometheus
|
|
||||||
|
|
||||||
`aquatic_ws` supports exporting [Prometheus](https://prometheus.io/) metrics.
|
|
||||||
|
|
||||||
Pass the `prometheus` feature when building:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
. ./scripts/env-native-cpu-without-avx-512
|
|
||||||
cargo build --release -p aquatic_ws --features "prometheus"
|
|
||||||
```
|
|
||||||
|
|
||||||
Then activate the prometheus endpoint in the configuration file:
|
|
||||||
|
|
||||||
```toml
|
|
||||||
[metrics]
|
|
||||||
# Run a prometheus endpoint
|
|
||||||
run_prometheus_endpoint = true
|
|
||||||
# Address to run prometheus endpoint on
|
|
||||||
prometheus_endpoint_address = "0.0.0.0:9000"
|
|
||||||
# Update metrics for torrent count this often (seconds)
|
|
||||||
torrent_count_update_interval = 10
|
|
||||||
```
|
|
||||||
|
|
||||||
## Load testing
|
## Load testing
|
||||||
|
|
||||||
There are load test binaries for all protocols. They use a CLI structure
|
There are load test binaries for all protocols. They use a CLI structure
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue