Go to file
Dustin c7feaa041a metrics: Add Prometheus metrics for BURP stats
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/
2022-02-12 15:15:29 -06:00
src metrics: Add Prometheus metrics for BURP stats 2022-02-12 15:15:29 -06:00
.gitattributes Initial commit 2022-02-06 12:56:24 -06:00
.gitignore Initial commit 2022-02-06 12:56:24 -06:00
Cargo.lock metrics: Add Prometheus metrics for BURP stats 2022-02-12 15:15:29 -06:00
Cargo.toml metrics: Add Prometheus metrics for BURP stats 2022-02-12 15:15:29 -06:00
LICENSE-Apache-2.0.txt Initial commit 2022-02-06 12:56:24 -06:00
LICENSE-MIT.txt Initial commit 2022-02-06 12:56:24 -06:00
README.md Initial commit 2022-02-06 12:56:24 -06:00
rustfmt.toml Initial commit 2022-02-06 12:56:24 -06:00

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

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.