Cadence
An extensible Statsd client for Rust!
Features
- Support for emitting counters, timers, gauges, and meters to Statsd over UDP.
- Support for alternate backends via the
MetricSinktrait. - A simple yet flexible API for sending metrics.
Install
To make use of Cadence in your project, add it as a dependency.
[]
= "x.y.z"
Usage
Typical usage of Cadence is shown below:
// Import the client
use ;
// Create client that will write to the given host over UDP.
//
// Note that you'll probably want to actually handle any errors creating the client
// when you use it for real in your application. We're just using .unwrap() here
// since this is an example!
let host = ;
let client = from_host.unwrap;
// Emit metrics!
client.incr;
client.time;
client.meter;
Documentation
Documentation is available at http://tshlabs.github.io/cadence/
Source
The source code is available on GitHub at https://github.com/tshlabs/cadence
Changes
Release notes for Cadence can be found in the CHANGES.md file.