#metrics #prometheus

prometheus_reporter

Prometheus support for rust

2 releases

0.0.2 Dec 9, 2016
0.0.1 Sep 3, 2016

#245 in Debugging

Download history 197/week @ 2019-12-10 2/week @ 2019-12-17 4/week @ 2019-12-24 2/week @ 2020-01-07 10/week @ 2020-01-14 1/week @ 2020-01-28 1/week @ 2020-02-04 2/week @ 2020-02-11 2/week @ 2020-02-18 26/week @ 2020-02-25 5/week @ 2020-03-03 8/week @ 2020-03-17 7/week @ 2020-03-24

79 downloads per month

MIT/Apache

115KB
2.5K SLoC

A first class prometheus reporter written in rust. This is still an early work in progress. This library is currently bundled with metrics but we intend on breaking it out into its own project as soon as it is stabilized. Rust metrics uses this library for prometheus integration. The overarching goal is a library to provide prometheus support to any rust application or library. We use the model having a seperate system thread for metrics collection.

Local Development

  • Install protobuf for protoc binary:

    On OS X Homebrew can be used:

    brew install protobuf
    

    On Ubuntu, protobuf-compiler package can be installed, and a more complete list of dependencies can be found in the travis file:

    apt-get install protobuf-compiler
    
  • Install the rust protoc plugin:

    cargo install protobuf
    

    and make sure the resulting binary in $HOME/.cargo/bin is in your path.

  • Then you should be able to use cargo

   cargo build # to build the code
   cargo test # to run the tests

## License

`prometheus reporter` is primarily distributed under the terms of both the MIT license and the
Apache License (Version 2.0).

See [LICENSE-APACHE](LICENSE-APACHE), [LICENSE-MIT](LICENSE-MIT) for details.

Copyright (c) 2016 Alex Newman.

Dependencies

~5MB
~111K SLoC