prometheus 0.13.3

Prometheus instrumentation library for Rust applications.

Prometheus Rust client library

Build Status

This is the Rust client library for Prometheus. The main data structures and APIs are ported from Go client.


Find the latest documentation at


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.