-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src/collector: Introduce Collector abstraction #82
Commits on Dec 2, 2022
-
encoding/: Adopt serde style encoding
Adopt encoding style similar to serde. `EncodeXXX` for a type that can be encoded (see serde's `Serialize`) and `XXXEncoder` for a supported encoding i.e. text and protobuf (see serde's `Serializer`). - Compatible with Rust's additive features. Enabling the `protobuf` feature does not change type signatures. - `EncodeMetric` is trait object safe, and thus `Registry` can use dynamic dispatch. - Implement a single encoding trait `EncodeMetric` per metric type instead of one implementation per metric AND per encoding format. - Leverage `std::fmt::Write` instead of `std::io::Write`. The OpenMetrics text format has to be unicode compliant. The OpenMetrics Protobuf format requires labels to be valid strings. Signed-off-by: Max Inden <mail@max-inden.de>
Configuration menu - View commit details
-
Copy full SHA for f0aa084 - Browse repository at this point
Copy the full SHA f0aa084View commit details
Commits on Dec 10, 2022
-
src/encoding: Generate EncodeLabelValue for integers
Signed-off-by: Max Inden <mail@max-inden.de>
Configuration menu - View commit details
-
Copy full SHA for 4b2d00f - Browse repository at this point
Copy the full SHA 4b2d00fView commit details -
src/encoding: Take reference for value
Signed-off-by: Max Inden <mail@max-inden.de>
Configuration menu - View commit details
-
Copy full SHA for d11c977 - Browse repository at this point
Copy the full SHA d11c977View commit details -
src/collector: Introduce Collector abstraction
The `Collector` abstraction allows users to provide additional metrics and their description on each scrape. See also: - https://pkg.go.dev/github.com/prometheus/client_golang/prometheus#hdr-Custom_Collectors_and_constant_Metrics - prometheus#49 - prometheus#29 Signed-off-by: Max Inden <mail@max-inden.de>
Configuration menu - View commit details
-
Copy full SHA for c337017 - Browse repository at this point
Copy the full SHA c337017View commit details -
src/metrics: Introduce const types
Signed-off-by: Max Inden <mail@max-inden.de>
Configuration menu - View commit details
-
Copy full SHA for c9f59eb - Browse repository at this point
Copy the full SHA c9f59ebView commit details
Commits on Dec 17, 2022
-
src/collector: Don't require Send and Sync
Iterators returned by a Collector don't have to cross thread boundaries, nor doe their references.
Configuration menu - View commit details
-
Copy full SHA for 723f86f - Browse repository at this point
Copy the full SHA 723f86fView commit details
Commits on Dec 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 83a2cb6 - Browse repository at this point
Copy the full SHA 83a2cb6View commit details
Commits on Dec 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5f70f0c - Browse repository at this point
Copy the full SHA 5f70f0cView commit details -
*: Bump version and add changelog entry
Signed-off-by: Max Inden <mail@max-inden.de>
Configuration menu - View commit details
-
Copy full SHA for d90c797 - Browse repository at this point
Copy the full SHA d90c797View commit details -
Rename collector::Metric to LocalMetric similar to futures box_local
Signed-off-by: Max Inden <mail@max-inden.de>
Configuration menu - View commit details
-
Copy full SHA for 50ce9c9 - Browse repository at this point
Copy the full SHA 50ce9c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b3aef2 - Browse repository at this point
Copy the full SHA 3b3aef2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5032236 - Browse repository at this point
Copy the full SHA 5032236View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66f2982 - Browse repository at this point
Copy the full SHA 66f2982View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff36682 - Browse repository at this point
Copy the full SHA ff36682View commit details