[][src]Module electrs::metrics

Structs

Histogram

A Metric counts individual observations from an event or sample stream in configurable buckets. Similar to a summary, it also provides a sum of observations and an observation count.

HistogramOpts

A struct that bundles the options for creating a Histogram metric. It is mandatory to set Name and Help to a non-empty string. All other fields are optional and can safely be left at their zero value.

HistogramTimer

A struct represents an event being timed. When the timer goes out of scope, the duration will be observed, or call observe_duration to manually observe.

MetricOpts

A struct that bundles the options for creating most Metric types.

Metrics

Type Definitions

Counter

The integer version of Counter. Provides better performance if metric values are all integers.

CounterVec

The integer version of CounterVec. Provides better performance if metric values are all integers.

Gauge

The integer version of Gauge. Provides better performance if metric values are all integers.

GaugeVec

A Collector that bundles a set of Gauges that all share the same Desc, but have different values for their variable labels. This is used if you want to count the same thing partitioned by various dimensions (e.g. number of operations queued, partitioned by user and operation type).

HistogramVec

A Collector that bundles a set of Histograms that all share the same Desc, but have different values for their variable labels. This is used if you want to count the same thing partitioned by various dimensions (e.g. HTTP request latencies, partitioned by status code and method).