#prometheus #metrics

prometheus

Prometheus instrumentation library for Rust applications

39 releases

0.13.3 Oct 21, 2022
0.13.1 May 19, 2022
0.13.0 Sep 28, 2021
0.12.0 Mar 5, 2021
0.1.0 Jan 22, 2016

#6 in Debugging

Download history 127599/week @ 2022-12-06 113759/week @ 2022-12-13 93881/week @ 2022-12-20 54815/week @ 2022-12-27 105624/week @ 2023-01-03 118527/week @ 2023-01-10 128057/week @ 2023-01-17 127460/week @ 2023-01-24 133176/week @ 2023-01-31 129493/week @ 2023-02-07 128135/week @ 2023-02-14 134196/week @ 2023-02-21 136054/week @ 2023-02-28 153756/week @ 2023-03-07 147561/week @ 2023-03-14 142361/week @ 2023-03-21

606,257 downloads per month
Used in 586 crates (184 directly)

Apache-2.0

330KB
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–11MB
~223K SLoC