Crate tacho [−] [src]
A thread-safe, Future
-aware metrics library.
Many programs need to information about runtime performance: the number of requests
served, a distribution of request latency, the number of failures, the number of loop
iterations, etc. tacho::new
creates a shareable, scopable metrics registry and a
Reporter
. The Scope
supports the creation of Counter
, Gauge
, and Stat
handles that may be used to report values. Each of these receivers maintains a weak
reference back to the central stats registry.
Performance
Labels are stored in a BTreeMap
because they are used as hash keys and, therefore,
need to implement Hash
.
Modules
prometheus |
Structs
Counter |
Counts monotically. |
Gauge |
Captures an instantaneous value. |
HistogramWithSum |
Tracks a distribution of values with their sum. |
Key |
Describes a metric. |
Registry | |
Report | |
Reporter | |
Scope |
Supports creation of scoped metrics. |
Stat |
Caputres a distribution of values. |
Timed | |
Timer |
Enums
Prefix | |
TimeUnit |
Traits
Timing |
Functions
new |
Creates a metrics registry. |