Skip to content

Enabling process-level system metrics (CPU, Memory, Disk, Network) to be observed using opentelemetry.

License

Notifications You must be signed in to change notification settings

haixuanTao/opentelemetry-system-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Enabling process-level system metrics (CPU, Memory, Disk, Network) to be observed using opentelemetry.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages