client_rust icon indicating copy to clipboard operation
client_rust copied to clipboard

Prometheus / OpenMetrics client library in Rust

Results 110 client_rust issues
Sort by recently updated
recently updated
newest added

Closes #46 ## 📝 Todos - [x] Implement encoding - [x] Implement unit tests - [x] Documentation - [x] Fix how to manage the dependencies of `.proto` files (noted below)...

Before `proemtheus-client` would use the `owning_ref` crate to map the target of a `std::sync::RwLockReadGuard`. `owning_ref` has multiple unsoundness issues, see https://rustsec.org/advisories/RUSTSEC-2022-0040.html. Instead of replacing `owning_ref` with a similar crate, we...

When run in debug mode, I think it is worth exploring running different validations on the registered metrics. Examples: - [ ] We could make sure a counter name does...

help wanted
good first issue

This is an implementation of a `Collector` trait for collecting all the Metric Families from one or more Registries to encode them all at once. For example, this allows exporting...

Owning ref is (1) seemingly unmaintained since last commit was 2 years ago and (2) [unsound](https://github.com/noamtashma/owning-ref-unsoundness). Something else should probably be used.

Not ready for review yet, just opening a draft for visibility Closes: #40

I tried using `()` as the label set for a family, like `Family`. Unfortunately this resulted in the following line in my metrics output: ``` histogram_name_bucket{,le="1.0"} 44 ``` This results...

Hello, I recently stumbled upon https://github.com/tikv/rust-prometheus/issues/392 and now I'm preparing a migration from `rust-prometheus`. I'm wondering how it would be possible to add a collector for process metrics just like...

Hi! Thank your for the project :) I found myself missing an implementation of the Summary metric, so decided to file an issue in case anyone (maybe myself) decides to...

help wanted
good first issue

The problem is demonstrated by the following [comment](https://github.com/prometheus/client_rust/blob/5d6ed2c104d47aed45fd65f4a41fff37177f60e0/src/encoding/text.rs#L20-L23) — ``` //! let expected = "# HELP my_counter This is my counter.\n".to_owned() + //! "# TYPE my_counter counter\n" + //! "my_counter_total...