#prometheus-metrics #metrics #prometheus #instrumentation #applications #latest #go

prometheus-32bitfix

Prometheus instrumentation library for Rust applications

1 unstable release

0.13.1 Jun 24, 2022

#912 in Encoding

Download history 20/week @ 2024-06-17 31/week @ 2024-06-24 62/week @ 2024-07-01 18/week @ 2024-07-08 17/week @ 2024-07-15 22/week @ 2024-07-22 27/week @ 2024-07-29 18/week @ 2024-08-05 24/week @ 2024-08-12 16/week @ 2024-08-19 13/week @ 2024-08-26 13/week @ 2024-09-02 28/week @ 2024-09-09 21/week @ 2024-09-16 24/week @ 2024-09-23 10/week @ 2024-09-30

84 downloads per month
Used in encrypted-dns

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–15MB
~190K SLoC