#prometheus #metrics

prometheus-32bitfix

Prometheus instrumentation library for Rust applications

1 unstable release

0.13.1 Jun 24, 2022

#545 in Data structures

Download history 82/week @ 2022-06-23 43/week @ 2022-06-30 38/week @ 2022-07-07 134/week @ 2022-07-14 122/week @ 2022-07-21 33/week @ 2022-07-28 65/week @ 2022-08-04 67/week @ 2022-08-11 33/week @ 2022-08-18 43/week @ 2022-08-25 36/week @ 2022-09-01 31/week @ 2022-09-08 22/week @ 2022-09-15 50/week @ 2022-09-22

153 downloads per month

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
~204K SLoC