dipstick 0.7.1

A fast and modular metrics library decoupling app instrumentation from reporting backend. Similar to popular logging frameworks, but with counters and timers. Can be configured for combined outputs (log + statsd), random sampling, local aggregation of metrics, recurrent background publication, etc.
Documentation
//! A sample application sending ad-hoc metrics to prometheus.

extern crate dipstick;

use dipstick::*;
use std::time::Duration;

fn main() {
    let metrics =
        Prometheus::push_to("http:// prometheus:9091/metrics/job/prometheus_example")
            .expect("Prometheus Socket")
            .add_prefix("my_app")
            .input();

    loop {
        metrics.counter("counter_a").count(123);
        metrics.timer("timer_a").interval_us(2000000);
        std::thread::sleep(Duration::from_millis(40));
    }
}