Crates.io | opentelemetry-system-metrics |
lib.rs | opentelemetry-system-metrics |
version | 0.2.0 |
source | src |
created_at | 2022-06-24 09:56:12.636041 |
updated_at | 2024-06-03 14:58:38.623483 |
description | System metric export through Opentelemetry |
homepage | |
repository | https://github.com/haixuanTao/opentelemetry-system-metrics |
max_upload_size | |
id | 612328 |
size | 64,603 |
This is my awesome crate enabling process level system metrics using opentelemetry.
Current metrics observed are:
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.
export INFLUX_TOKEN=<PROVIDED TOKEN>
telegraf --config <PROVIDED LINK>
cargo run --example otlp-tokio-metrics