Cargo Features

[dependencies]
metrics-process = { version = "2.4.0", default-features = false, features = ["metrics-rs", "dummy", "use-gauge-on-cpu-seconds-total"] }
default = metrics-rs

The metrics-rs feature is set by default whenever metrics-process is added without default-features = false somewhere in the dependency tree.

metrics-rs default

Enable the metrics-rs collector integration.

Enables metrics

Affects metrics-process::Collector

dummy

Enable a dummy collector that always return an empty Metrics for non supported platforms

use-gauge-on-cpu-seconds-total

Use a Gauge on process_cpu_seconds_total metrics instead of Counter to represent f64 value. This is a previous behavior prior to version 2.0.0. See https://github.com/lambdalisue/rs-metrics-process/issues/44 for more details.