Finally, a working application! The heavy lifting is handled by *prometheus_exporter_base*, which sets up the Hyper server and registers the *GET /metrics* path operation handler. Really, all we have to provide is the logic to connect to the BURP stats socket given the options specified in the configuration file. The `metrics::get_metrics` function handles the generation of the metrics, which we return as a string to be served to the HTTP client. |
||
---|---|---|
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.