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

#4 in Debugging

Download history 284120/week @ 2024-07-27 278450/week @ 2024-08-03 305453/week @ 2024-08-10 286321/week @ 2024-08-17 299561/week @ 2024-08-24 296354/week @ 2024-08-31 302155/week @ 2024-09-07 268631/week @ 2024-09-14 295396/week @ 2024-09-21 305886/week @ 2024-09-28 302345/week @ 2024-10-05 324848/week @ 2024-10-12 345310/week @ 2024-10-19 316815/week @ 2024-10-26 317009/week @ 2024-11-02 259590/week @ 2024-11-09

1,295,477 downloads per month
Used in 976 crates (304 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