tikv/rust-prometheus

Prometheus instrumentation library for Rust applications

Rust

1,181

277 commits

updated Dec 31, 2025

See the code

README

Prometheus Rust client library

Build Status docs.rs crates.io

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.

Thanks

tikv/rust-prometheus

Prometheus instrumentation library for Rust applications

Rust

1,181

277 commits

updated Dec 31, 2025

See the code

README

Prometheus Rust client library

Build Status docs.rs crates.io

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.

Thanks

Project health

Overall

4.2/10

Maintained

0/10

Code review

10/10
OpenSSF Scorecard

Significant stargazers

(top 24 of 37)

jakevin

3,114 followers · starred Aug 2021

Matthias Loibl

541 followers · starred Nov 2021

Antonio Murdaca

306 followers · starred Nov 2017

Goutham Veeramachaneni

559 followers · starred Nov 2021