Expand description
Metric definitions and helpers
Modules§
- tests
- Provides functionality to help with testing Hyperlight Metrics
Structs§
- Histogram
- AHistogram for Hyperlight A named histogram
- Histogram
Vec - A Histogram Vec for Hyperlight A named bundle of histograms
- Hyperlight
Metric Definition - The definition of a Hyperlight metric
- IntCounter
- An Integer Counter for Hyperlight
A named counter backed by an
AtomicU64
- IntCounter
Vec - An Integer Counter Vec for Hyperlight A 64-bit counter
- IntGauge
- An Integer Gauge Metric for Hyperlight
A gauge backed by an
AtomicI64
- IntGauge
Vec - An Integer Gauge Metric for Hyperlight
Enums§
- Hyperlight
Metric - An instance of a Hyperlight metric
- Hyperlight
Metric Type - The types of Hyperlight metrics that can be created
Traits§
- GetHyperlight
Metric - A trait that should be implemented by all hyperlight metric definitions to convert the metric into a HyperlightMetric
- Hyperlight
Metric Enum - A trait that should be implemented by all enums that represent hyperlight metrics
- Hyperlight
Metric Ops - 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.