https://github.com/tikv/rust-prometheus
Prometheus instrumentation library for Rust applications
https://github.com/tikv/rust-prometheus
Last synced: 6 days ago
JSON representation
Prometheus instrumentation library for Rust applications
- Host: GitHub
- URL: https://github.com/tikv/rust-prometheus
- Owner: tikv
- License: apache-2.0
- Created: 2016-08-11T02:06:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-16T07:37:45.000Z (14 days ago)
- Last Synced: 2025-04-23T17:13:02.873Z (6 days ago)
- Language: Rust
- Size: 736 KB
- Stars: 1,117
- Watchers: 58
- Forks: 197
- Open Issues: 84
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-ccamel - tikv/rust-prometheus - Prometheus instrumentation library for Rust applications (Rust)
README
# Prometheus Rust client library
[](https://github.com/tikv/rust-prometheus/actions/workflows/rust.yml)
[](https://docs.rs/prometheus)
[](https://crates.io/crates/prometheus)This is the [Rust](https://www.rust-lang.org) client library for
[Prometheus](http://prometheus.io). The main data structures and APIs are ported
from [Go client](https://github.com/prometheus/client_golang).## Documentation
Find the latest documentation at .
## Advanced
### Crate features
This crate provides several optional components which can be enabled via [Cargo `[features]`](https://doc.rust-lang.org/cargo/reference/features.html):
- `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](https://prometheus.io/docs/instrumenting/writing_clientlibs/#process-metrics) support.
- `push`: Enable [push metrics](https://prometheus.io/docs/instrumenting/pushing/) 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](./static-metric) directory for details.
## Thanks
- [brian-brazil](https://github.com/brian-brazil)
- [ccmtaylor](https://github.com/ccmtaylor)
- [kamalmarhubi](https://github.com/kamalmarhubi)
- [lucab](https://github.com/lucab)
- [koushiro](https://github.com/koushiro)