Crate prometheus [−] [src]
The Rust client library for Prometheus.
Modules
core |
Core traits and types. |
local |
Unsync local metrics, provides better performance. |
proto |
Protocol buffers format of metrics. |
Macros
histogram_opts |
Create a |
labels |
Create labels with specified name-value pairs. |
opts |
Create an |
register_counter |
Create a |
register_counter_vec |
Create a |
register_gauge |
Create a |
register_gauge_vec |
Create a |
register_histogram |
Create a |
register_histogram_vec |
Create a |
register_int_counter |
Create an |
register_int_counter_vec |
Create an |
register_int_gauge |
Create an |
register_int_gauge_vec |
Create an |
Structs
Histogram |
A |
HistogramOpts |
A struct that bundles the options for creating a |
HistogramTimer |
A struct represents an event being timed. When the timer goes out of
scope, the duration will be observed, or call |
Opts |
A struct that bundles the options for creating most |
ProtobufEncoder |
An implementation of an |
Registry |
A struct for registering Prometheus collectors, collecting their metrics, and gathering
them into |
TextEncoder |
An implementation of an |
Enums
Error |
The error types for prometheus. |
Constants
DEFAULT_BUCKETS |
The default |
PROTOBUF_FORMAT |
The protocol buffer format of metric family. |
TEXT_FORMAT |
The text format of metric family. |
Traits
Encoder |
An interface for encoding metric families into an underlying wire protocol. |
Functions
exponential_buckets |
Create |
gather |
Return all |
linear_buckets |
Create |
register |
Registers a new |
unregister |
Unregisters the |
Type Definitions
Counter |
A |
CounterVec |
A |
Gauge |
A |
GaugeVec |
A |
HistogramVec |
A |
IntCounter |
The integer version of |
IntCounterVec |
The integer version of |
IntGauge |
The integer version of |
IntGaugeVec |
The integer version of |
Result |
A specialized Result type for prometheus. |