This is my awesome crate enabling process level system metrics using opentelemetry.
Current metrics observed are:
- CPU
- Memory
- Disk
- Network
- GPU Memory
cargo add opentelemetry_system_metrics
use opentelemetry::global;
use opentelemetry_system_metrics::init_process_observer;
let meter = global::meter("process-meter");
init_process_observer(meter);
To get started with InfluxDB, you should create an account at InfluxDB Cloud, create a new telegraf opentelemetry exporter.
- Ex:
export INFLUX_TOKEN=<PROVIDED TOKEN>
telegraf --config <PROVIDED LINK>
cargo run --example otlp-tokio-metrics