prometheus-http-query
This crate provides an interface to the Prometheus HTTP API and leverage Rust's type system in the process where applicable.
Example
use ;
async
Compatibility
This library is generally compatible with Prometheus versions starting from v2.30. Individual client methods might fail with older versions as newer versions of Prometheus server support additional methods and query parameters. Run Prometheus server version >= 2.46 to ensure maximum compatibility.
Tests
In order to run all tests a Prometheus server must be running at http://localhost:9090
. No special configuration is required at this point, simply run: cargo test
Contributing
Please do not hesitate to file issues in order to report bugs, ask questions or make suggestions. You are also welcome to tackle open issues if there are any.
If you are looking to submit code, please make sure that the tests pass successfully.