dc0c987358a47407a0c9697b374a3b3bd2f7ab03
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.
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.
Description
Languages
Rust
100%