40 releases

0.13.4 May 4, 2024
0.13.3 Oct 21, 2022
0.13.2 Sep 8, 2022
0.13.1 May 19, 2022
0.1.0 Jan 22, 2016

#7 in Debugging

Download history 218661/week @ 2024-02-04 221326/week @ 2024-02-11 217768/week @ 2024-02-18 229795/week @ 2024-02-25 216765/week @ 2024-03-03 231693/week @ 2024-03-10 239229/week @ 2024-03-17 223024/week @ 2024-03-24 241641/week @ 2024-03-31 237133/week @ 2024-04-07 242060/week @ 2024-04-14 260877/week @ 2024-04-21 240081/week @ 2024-04-28 241789/week @ 2024-05-05 266192/week @ 2024-05-12 261021/week @ 2024-05-19

1,019,810 downloads per month
Used in 901 crates (272 directly)

Apache-2.0

335KB
7.5K SLoC

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]:

  • 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

Dependencies

~2–15MB
~208K SLoC