9 releases
0.2.0 | Jun 3, 2024 |
---|---|
0.1.9 |
|
0.1.8 | Mar 15, 2024 |
0.1.6 | Nov 20, 2023 |
0.1.1 | Jun 24, 2022 |
#1023 in Network programming
5,547 downloads per month
Used in 2 crates
(via dora-metrics)
19KB
149 lines
opentelemetry-system-metrics
This is my awesome crate enabling process level system metrics using opentelemetry.
Current metrics observed are:
- CPU
- Memory
- Disk
- Network
- GPU Memory
Getting started
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
lib.rs
:
This is my awesome crate Enabling system metrics from process to be observed using opentelemetry. Current metrics observed are:
- CPU
- Memory
- Disk
- Network
Getting started
use opentelemetry::global;
use opentelemetry_system_metrics::init_process_observer;
let meter = global::meter("process-meter");
init_process_observer(meter);
Dependencies
~5MB
~93K SLoC