Struct prometrics::metrics::ProcessMetricsCollector
[−]
[src]
pub struct ProcessMetricsCollector { /* fields omitted */ }
Process metrics collector.
Notice
On non Linux platforms, the collect
method always returns None
.
Reference
Examples
use prometrics::{default_gatherer, default_registry}; use prometrics::metrics::ProcessMetricsCollector; // Register default_registry().register(ProcessMetricsCollector::new()); // Gather let _metrics = default_gatherer().lock().unwrap().gather();
Methods
impl ProcessMetricsCollector
[src]
Trait Implementations
impl Debug for ProcessMetricsCollector
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more