Module metrics

Module metrics 

Source
Expand description

The Metrics trait is used to collect information from multiple components in the entire system.

This trait can be used to spawn the following traits:

  • Counter: an ever-increasing value (example usage: total bytes send/received)
  • Gauge: a value that store the latest value, and can go up and down (example usage: amount of users logged in)
  • Histogram: stores multiple float values based for a graph (example usage: CPU %)
  • text: stores a constant string in the collected metrics

Structs§

NoMetrics
Use this if you’re not planning to use any metrics. All methods are implemented as a no-op

Traits§

Counter
An ever-incrementing counter
CounterFamily
A family of related counters, partitioned by their label values.
Gauge
A gauge that stores the latest value.
GaugeFamily
A family of related gauges, partitioned by their label values.
Histogram
A histogram which will record a series of points.
HistogramFamily
A family of related histograms, partitioned by their label values.
Metrics
The metrics type.
MetricsFamily
A family of related metrics, partitioned by their label values.
TextFamily
A family of related text metrics, partitioned by their label values.