Module metrix::instruments[][src]

Instruments that track values and/or derive values from observations.

Re-exports

pub use self::other_instruments::*;
pub use self::polled::*;
pub use self::switches::*;
pub use crate::cockpit::Cockpit;

Modules

other_instruments

Other instruments

polled

Instruments that poll their values when a snapshot is requested.

switches

Switched have a boolean state that is changed by Observations.

Structs

AcceptAllLabels
AcceptNoLabel
AcceptOneLabel
BorrowedLabelAndUpdate

A label with the associated Update

Counter

A simple ever increasing counter

Gauge

Simply returns the value that has been observed last.

GaugeAdapter
Histogram

For tracking values. E.g. request latencies

InstrumentAdapter
L
LP
LabelAndUpdate

A label with the associated Update

LabelFilter
LabelPredicate
Meter

For measuring rates, e.g. request/s

Panel

The panel shows recorded observations with the same label in different representations.

Enums

Update

An update instruction for an instrument

Traits

Instrument

Requirement for an instrument

Updates

Implementors of Updates can handle Updates.