#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

#4 in Debugging

Download history 142324/week @ 2022-08-08 130753/week @ 2022-08-15 123528/week @ 2022-08-22 126074/week @ 2022-08-29 139600/week @ 2022-09-05 125001/week @ 2022-09-12 128270/week @ 2022-09-19 130150/week @ 2022-09-26 117099/week @ 2022-10-03 117377/week @ 2022-10-10 121579/week @ 2022-10-17 123250/week @ 2022-10-24 117059/week @ 2022-10-31 130150/week @ 2022-11-07 137408/week @ 2022-11-14 102554/week @ 2022-11-21

492,756 downloads per month
Used in 526 crates (164 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–12MB
~227K SLoC