Prometheus monitoring library for Rust
  • Rust 99.6%
  • Makefile 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Thomas Habets 81514180fc
Some checks failed
Rust / Build, minimum toolchain (push) Has been cancelled
Rust / Lints, pinned toolchain (push) Has been cancelled
Rust / Benchmarks (criterion) (push) Has been cancelled
Rust / Tests, stable toolchain (push) Has been cancelled
Rust / Tests, unstable toolchain (push) Has been cancelled
Rust / Tests, unstable toolchain-1 (push) Has been cancelled
Bump rust version requirement to 1.82, because dependencies (#557)
This should fix:

```
error: rustc 1.81.0 is not supported by the following packages:
  icu_collections@2.0.0 requires rustc 1.82
  icu_locale_core@2.0.0 requires rustc 1.82
  icu_normalizer@2.0.0 requires rustc 1.82
  icu_normalizer_data@2.0.0 requires rustc 1.82
  icu_normalizer_data@2.0.0 requires rustc 1.82
  icu_normalizer_data@2.0.0 requires rustc 1.82
  icu_properties@2.0.1 requires rustc 1.82
  icu_properties_data@2.0.1 requires rustc 1.82
  icu_properties_data@2.0.1 requires rustc 1.82
  icu_properties_data@2.0.1 requires rustc 1.82
  icu_provider@2.0.0 requires rustc 1.82
  idna_adapter@1.2.1 requires rustc 1.82
  litemap@0.8.0 requires rustc 1.82
  potential_utf@0.1.3 requires rustc 1.82
  zerotrie@0.2.2 requires rustc 1.82
  zerovec@0.11.4 requires rustc 1.82
Either upgrade rustc or select compatible dependency versions with
`cargo update <name>@<current-ver> --precise <compatible-ver>`
where `<compatible-ver>` is the latest version supporting rustc 1.81.0
```

Signed-off-by: Thomas Habets <thomas@habets.se>
2025-10-17 15:22:22 +02:00
.github Bump rust version requirement to 1.82, because dependencies (#557) 2025-10-17 15:22:22 +02:00
benches Hashing improvements (#532) 2025-03-21 10:44:25 +01:00
docs doc/release.md: Document release process (#373) 2020-12-14 13:55:54 +01:00
examples build(deps): update hyper requirement from ^0.14 to ^1.4 (#524) 2025-03-19 16:16:45 +01:00
proto cargo: upgrade to protobuf 3.7 (#541) 2025-03-19 10:21:43 +01:00
src chore(histogram): Simplify code by using std lib method (#547) 2025-04-16 09:37:45 +02:00
static-metric static-metric: fix typos in docstrings (#479) 2024-05-06 16:00:46 +02:00
.gitignore Ignore Intellij IDEA files and some others (#142) 2018-01-25 10:55:54 +08:00
build.rs cargo: upgrade to protobuf 3.7 (#541) 2025-03-19 10:21:43 +01:00
Cargo.toml Bump rust version requirement to 1.82, because dependencies (#557) 2025-10-17 15:22:22 +02:00
CHANGELOG.md prometheus: release 0.14.0 (#545) 2025-03-27 16:33:36 +08:00
CODE_OF_CONDUCT.md Create a Code of Conduct (#193) 2018-09-07 10:24:43 +08:00
LICENSE Update copyright header (#295) 2019-11-27 20:39:57 +08:00
Makefile Bump static-metric to 0.4 (#338) 2020-08-17 21:49:11 +08:00
README.md README.md: Document protobuf feature (#531) 2024-12-13 10:41:36 +01:00

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]:

  • protobuf: Protobuf support, enabled by default.

  • 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