Need help with rust-prometheus?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

749 Stars 137 Forks Apache License 2.0 265 Commits 49 Opened issues


Prometheus instrumentation library for Rust applications

Services available


Need anything else?

Contributors list

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


  • 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

with label values known at compile time prometheus-static-metric reduces the overhead of retrieving the concrete
from a

See static-metric directory for details.


We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.