The `metrics` module encapsulates the functionality for generating Prometheus metrics from BURP stats. Given a `BurpClient` instance, the `get_metrics` function calls the necessary RPC methods to fetch the latest backup statistics for each known BURP client. It then generates metrics in Prometheus plain text exposition format, using the excellent [prometheus_exporter_base] crate. The result is returned as a string, which can then be used to produce an HTTP response to a Prometheus scrape request. The *prometheus_exporter_base* crate also provides a simple HTTP server, based on [Hyper], which we will eventually use to serve this response. [prometheus_exporter_base]: https://github.com/MindFlavor/prometheus_exporter_base/ [Hyper]: https://hyper.rs/ |
||
---|---|---|
src | ||
.gitattributes | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE-Apache-2.0.txt | ||
LICENSE-MIT.txt | ||
README.md | ||
rustfmt.toml |
README.md
Prometheus Exporter for BURP
burp_exporter
is a Prometheus exporter for BURP - BackUp and Restore
Program. It uses the Status Monitor interface to retrieve information
about BURP clients and backups.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.