Crate tari_metrics

Crate tari_metrics 

Source

Modules§

proto
Protocol buffers format of metrics. Generated file from proto_model.proto

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
Timer to measure and record the duration of an event.
Registry
A struct for registering Prometheus collectors, collecting their metrics, and gathering them into MetricFamilies for exposition.

Enums§

Error
The error types for prometheus.

Traits§

Collector
An interface for collecting metrics.

Functions§

get_default_registry
register
register_gauge
register_gauge_vec
register_histogram
register_histogram_vec
register_int_counter
register_int_counter_vec
register_int_gauge
register_int_gauge_vec
set_default_registry
Sets the global default registry.

Type Aliases§

Counter
A Metric represents a single numerical value that only ever goes up.
CounterVec
A Collector that bundles a set of Counters 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 HTTP requests, partitioned by response code and method).
Gauge
A Metric represents a single numerical value that can arbitrarily go up and down.
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).
IntCounter
The integer version of Counter. Provides better performance if metric values are all positive integers (natural numbers).
IntCounterVec
The integer version of CounterVec. Provides better performance if metric are all positive integers (natural numbers).
IntGauge
The integer version of Gauge. Provides better performance if metric values are all integers.
IntGaugeVec
The integer version of GaugeVec. Provides better performance if metric values are all integers.