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 whenevermetrics-process
is added without
somewhere in the dependency tree.default-features = false - metrics-rs default
-
Enable the metrics-rs collector integration.
Enables metrics
Affects
metrics-process::Collector
… - dummy
-
Enable a
dummy
collector that always return an emptyMetrics
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.