* chore(histogram): Simplify code by using std lib method Leverage existing standard library method to simplify implementation. No changes to public API or MSRV. Signed-off-by: Matheus <cardosaum@pm.me> * refactor(histogram): Remove `duration_to_seconds` function Signed-off-by: Matheus <cardosaum@pm.me> * tests(histogram): Remove `duration_to_second` test After removing the aforementioned method in a previous commit, this test became obsolete. Signed-off-by: Matheus <cardosaum@pm.me> --------- Signed-off-by: Matheus <cardosaum@pm.me> Co-authored-by: Luca Bruno <lucab@lucabruno.net> |
||
---|---|---|
.github | ||
benches | ||
docs | ||
examples | ||
proto | ||
src | ||
static-metric | ||
.gitignore | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
Cargo.toml | ||
LICENSE | ||
Makefile | ||
README.md | ||
build.rs |
README.md
Prometheus Rust client library
This is the Rust client library for Prometheus. The main data structures and APIs are ported from Go client.
Documentation
Find the latest documentation at https://docs.rs/prometheus.
Advanced
Crate features
This crate provides several optional components which can be enabled via Cargo [features]
:
-
protobuf
: Protobuf support, enabled by default. -
gen
: To generate protobuf client with the latest protobuf version instead of using the pre-generated client. -
nightly
: Enable nightly only features. -
process
: Enable process metrics support. -
push
: Enable push metrics support.
Static Metric
When using a MetricVec
with label values known at compile time
prometheus-static-metric reduces the overhead of retrieving the concrete
Metric
from a MetricVec
.
See static-metric directory for details.