The `burp::error::Error` struct needs to implement the `std::error::Error` trait (which requires that it also implement `std::fmt::Display`) so that it can be used in dynamic dispatch situations. Notably, the `prometheus_exporter_base::render_prometheus` function requires a closure that returns `Result<String, Box<dyn std::error::Error>>`, so in order to use the `?` (early return) operator on on the `metrics::get_metrics` function call, our error must implement that trait. |
||
---|---|---|
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.