Struct metrix::driver::TelemetryDriver[][src]

pub struct TelemetryDriver { /* fields omitted */ }

Triggers registered ProcessesTelemetryMessages to poll for messages.

Runs its own background thread. The thread stops once this struct is dropped.

A TelemetryDriver can be 'mounted' into the hierarchy. If done so, it will still poll its children on its own thread independently.

Optional Metrics

The driver can be configured to collect metrics on its own activities.

The metrics will be added to all snapshots under a field named _metrix which contains the following fields:

  • collections_per_second: The number of observation collection runs done per second

  • collection_times_us: A histogram of the time each observation collection took in microseconds.

  • observations_processed_per_second: The number of observations processed per second.

  • observations_processed_per_collection: A histogram of the number of observations processed during each run

  • observations_dropped_per_second: The number of observations dropped per second. See also max_observation_age.

  • observations_dropped_per_collection: A histogram of the number of observations dropped during each run. See also max_observation_age.

  • snapshots_per_second: The number of snapshots taken per second.

  • snapshots_times_us: A histogram of the times it took to take a snapshot in microseconds

  • dropped_observations_alarm: Will be true if observations have been dropped. Will by default stay true for 60 seconds once triggered.

  • inactivity_alarm: Will be true if no observations have been made for a certain amount of time. The default is 60 seconds.

Methods

impl TelemetryDriver
[src]

Creates a new TelemetryDriver.

max_observation_age is the maximum age of an Observation to be taken into account. This is determined by the timestamp field of an Observation. Observations that are too old are simply dropped. The default is 60 seconds.

Creates a new TelemetryDriver which has its own metrics.

max_observation_age is the maximum age of an Observation to be taken into account. This is determined by the timestamp field of an Observation. Observations that are too old are simply dropped. The default is 60 seconds.

Trait Implementations

impl Clone for TelemetryDriver
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl ProcessesTelemetryMessages for TelemetryDriver
[src]

Receive and handle pending operations

impl PutsSnapshot for TelemetryDriver
[src]

Puts the current snapshot values into the given Snapshot thereby following the guidelines of PutsSnapshot. Read more

impl Default for TelemetryDriver
[src]

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

impl AggregatesProcessors for TelemetryDriver
[src]

Add a processor.

Add a snapshooter.

impl Descriptive for TelemetryDriver
[src]

Auto Trait Implementations