Agent for gathering system metrics and exporting to Prometheus.
Rusty-Advisor
can be configured using a config file, specified by environment variable RUSTY_CONFIG_FILE
.
It can be provided in the following formats:
It's possible to override any settings by an environment variable -prefixed with RUSTY
-.
Every option has a sane default, which means you can run Rusty-Advisor
without providing any configuration.
- Default values in
TOML
format:
debug = false
[prometheus_exporter]
host = "0.0.0.0"
port = 9095
path = "/metrics"
[hiccups_monitor]
resolution_nanos = 100
- Example of environment variables:
RUSTY_DEBUG=true
RUSTY_PROMETHEUS_EXPORTER.HOST=127.0.0.1
cargo test -- --nocapture
Do a fresh build and run it:
docker build -t rusty-advisor .
docker run --rm -it rusty-advisor