Module metrics

Source
Expand description

Metric definitions and helpers

Modules§

tests
Provides functionality to help with testing Hyperlight Metrics

Structs§

Histogram
AHistogram for Hyperlight A named histogram
HistogramVec
A Histogram Vec for Hyperlight A named bundle of histograms
HyperlightMetricDefinition
The definition of a Hyperlight metric
IntCounter
An Integer Counter for Hyperlight A named counter backed by an AtomicU64
IntCounterVec
An Integer Counter Vec for Hyperlight A 64-bit counter
IntGauge
An Integer Gauge Metric for Hyperlight A gauge backed by an AtomicI64
IntGaugeVec
An Integer Gauge Metric for Hyperlight

Enums§

HyperlightMetric
An instance of a Hyperlight metric
HyperlightMetricType
The types of Hyperlight metrics that can be created

Traits§

GetHyperlightMetric
A trait that should be implemented by all hyperlight metric definitions to convert the metric into a HyperlightMetric
HyperlightMetricEnum
A trait that should be implemented by all enums that represent hyperlight metrics
HyperlightMetricOps
A trait that should be implemented by all enums that represent hyperlight metrics to convert the enum into a HyperlightMetric

Functions§

get_metrics_registry
Get the registry to be used for all metrics, this can be set by the user of the library, if its not set then the default registry will be used.
set_metrics_registry
Set the registry to be used for all metrics, this can be set by the user of the library, if its not set then the default registry will be used. This function should be called before any other function in this module is called.