Re-exports§

  • pub use prometheus;

Structs§

  • The underlying implementation for [Counter] and [IntCounter].
  • A atomic float.
  • The underlying implementation for [Gauge] and [IntGauge].
  • 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.
  • 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§

Traits§

Functions§

  • Create count buckets, where the lowest bucket has an upper bound of start and each following bucket’s upper bound is factor 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 of HistogramOpts.
  • Initializes the metrics context, and starts an HTTP server to serve metrics.

Type Aliases§

  • The underlying implementation for [CounterVec] and [IntCounterVec].
  • The underlying implementation for [GaugeVec] and [IntGaugeVec].
  • 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).
  • A counter whose values are obtained from an existing source.
  • A gauge whose values are obtained from an existing source.