Cargo Features
metrics-process has no features set by default.
[dependencies]
metrics-process = { version = "2.3.1", features = ["dummy", "use-gauge-on-cpu-seconds-total"] }
- 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.