prom-remote-api
Prometheus remote storage API for Rust.
Usage
There are two interfaces in Prometheus remote storage API: write/read.
Both interfaces use a snappy-compressed protocol buffer encoding over HTTP.
This crate provides:
- Rust-binding to prometheus remote storage protocol buffer definitions
- Various web framework utils to serve the remote wire protocols, which are controlled by corresponding feature-gates. Available features:
warpactix- more web framework will be added
Any third-party storage can integrate with Prometheus by implementing RemoteStorage trait.
See warp-demo.rs, actix-demo.rs to learn how to build a remote storage.