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

#5 in Debugging

Download history 277772/week @ 2024-08-02 304102/week @ 2024-08-09 281093/week @ 2024-08-16 300123/week @ 2024-08-23 292458/week @ 2024-08-30 310640/week @ 2024-09-06 263650/week @ 2024-09-13 303191/week @ 2024-09-20 301586/week @ 2024-09-27 305437/week @ 2024-10-04 315022/week @ 2024-10-11 343647/week @ 2024-10-18 324750/week @ 2024-10-25 315785/week @ 2024-11-01 309163/week @ 2024-11-08 348958/week @ 2024-11-15

1,363,100 downloads per month
Used in 980 crates (306 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
~205K SLoC