Modules§
- The Rust client library for Prometheus.
Macros§
- Create a
HistogramOpts
.
Structs§
- The underlying implementation for
Counter
andIntCounter
. - A atomic float.
- 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. - A atomic signed integer.
- A struct that bundles the options for creating most
Metric
types. - A struct for registering Prometheus collectors, collecting their metrics, and gathering them into
MetricFamilies
for exposition. - A metric whose values are obtained from an existing source, instead of being independently recorded.
- A atomic unsigned integer.
Enums§
- The error types for prometheus.
Traits§
- A source of values for a
SourcedMetric
.
Functions§
- Create
count
buckets, where the lowest bucket has an upper bound ofstart
and each following bucket’s upper bound isfactor
times the previous bucket’s upper bound. The final +Inf bucket is not counted and not included in the returned slice. The returned slice is meant to be used for the Buckets field ofHistogramOpts
. - Initializes the metrics context, and starts an HTTP server to serve metrics.
- Create
count
buckets, eachwidth
wide, where the lowest bucket has an upper bound ofstart
. The final +Inf bucket is not counted and not included in the returned slice. The returned slice is meant to be used for the Buckets field ofHistogramOpts
.
Type Aliases§
- The underlying implementation for
CounterVec
andIntCounterVec
. - The underlying implementation for
GaugeVec
andIntGaugeVec
. - A counter whose values are obtained from an existing source.
- A gauge whose values are obtained from an existing source.