| Crates.io | serde_prometheus_labels |
| lib.rs | serde_prometheus_labels |
| version | 0.2.0 |
| created_at | 2022-10-10 11:39:59.723191+00 |
| updated_at | 2022-10-10 11:39:59.723191+00 |
| description | A serializer for Prometheus labels |
| homepage | |
| repository | https://github.com/nox/serde_prometheus_labels |
| max_upload_size | |
| id | 684530 |
| size | 44,428 |
This crate is a Rust library for Prometheus labels. It is built upon Serde, a high performance generic serialization framework.
This crate works with Cargo and can be found on crates.io with a Cargo.toml like:
[dependencies]
serde_prometheus_labels = "0.2"
The documentation is available on docs.rs.
With the feature "bridge" enabled, this crate provides a wrapper
to prometheus_client::metrics::family::Family which uses serde::Serialize
instead of prometheus_client::encoding::text::Encode to encode the label set
used by this family. The bridge is available directly at the root of the crate
as serde_prometheus_labels::Family.
You can find me on IRC either in ##rust or #rust-fr on
Libera.Chat. If IRC is not your thing, I am happy to
respond to GitHub issues
as well.
serde_prometheus_labels is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in serde_prometheus_labels by you, as defined in the Apache-2.0
license shall be dual licensed as above, without any additional terms or conditions.