Skip to content

rusty-telemetry/rusty-advisor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rusty Advisor

Agent for gathering system metrics and exporting to Prometheus.

Config

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

Tests

 cargo test -- --nocapture

Docker

Do a fresh build and run it:

 docker build -t rusty-advisor . 
 docker run --rm -it rusty-advisor 

Releases

No releases published

Packages

No packages published