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]

[src]

Makes a new ProcessMetricsCollector instance.

Trait Implementations

impl Debug for ProcessMetricsCollector
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for ProcessMetricsCollector
[src]

[src]

Returns the "default value" for a type. Read more

impl Collect for ProcessMetricsCollector
[src]

An iterator over collected metrics.

[src]

Collects metrics. Read more

Auto Trait Implementations