Expand description
Metrical is a library for quickly exporting metrics to Graphite or StatsD.
Metrical supports 3 different protocols for sending data:
- Statsd
- Graphite Uncompressed
- Graphite Compressed (Pickled)
Additionally, it supports sending via TCP or UDP.
§Features
Metrical exports the following features:
- pickle - This feature is required to use the graphite pickled protocol. This features is not on by default. The protocol will pickle using pickle version 3.
Structs§
- Configuration
- A configuration of the metrical library.
- Configuration
Builder - Helper to build a configuration piece by piece.
- Counter
- A metric used to measure incrementing values.
- Gauge
- A metric used to measure both increasing and decreasing resources.
- Timer
- A metric used to measure the time elapsed during a task or process.
Enums§
- Metrical
Error - Describes an error associated with the metrical library.
Functions§
- counter
- Create a counter to count a metric that always increases.
- flush
- Force any buffered metrics to be published.
- from_
config - Initializes the metrical library with the given configuration.
- from_
env - Configure metrical by looking up environment variables.
- gauge
- Create a gauge to monitor both incrementing and decrementing of a statistic
- namespace
- Extend the namespace used by created metrics
- timer
- Create a timer to monitor time needed to perform a specific action