• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/H03-May-2022-161123

benches/H03-May-2022-544372

docs/H03-May-2022-6442

examples/H03-May-2022-410312

proto/H03-May-2022-2,6152,143

src/H03-May-2022-6,8664,724

.cargo-checksum.jsonH A D03-May-202289 11

.cargo_vcs_info.jsonH A D01-Jan-197074 65

.gitignoreH A D01-Jan-1970277 2920

.travis.ymlH A D01-Jan-1970789 4235

CHANGELOG.mdH A D01-Jan-19702.4 KiB9045

CODE_OF_CONDUCT.mdH A D01-Jan-19703.1 KiB4728

Cargo.lockH A D01-Jan-197037.4 KiB1,5411,379

Cargo.tomlH A D01-Jan-19702.3 KiB11090

Cargo.toml.orig-cargoH A D01-Jan-19701.7 KiB7661

LICENSEH A D01-Jan-197011.1 KiB202169

MakefileH A D01-Jan-1970888 3423

README.mdH A D01-Jan-19701.6 KiB4528

build.rsH A D01-Jan-1970466 2015

README.md

1# Prometheus Rust client library
2
3[![Build Status](https://travis-ci.org/tikv/rust-prometheus.svg?branch=master)](https://travis-ci.org/pingcap/rust-prometheus)
4[![docs.rs](https://docs.rs/prometheus/badge.svg)](https://docs.rs/prometheus)
5[![crates.io](http://meritbadge.herokuapp.com/prometheus)](https://crates.io/crates/prometheus)
6
7This is the [Rust](https://www.rust-lang.org) client library for
8[Prometheus](http://prometheus.io). The main data structures and APIs are ported
9from [Go client](https://github.com/prometheus/client_golang).
10
11## Documentation
12
13Find the latest documentation at <https://docs.rs/prometheus>.
14
15## Advanced
16
17### Crate features
18
19This crate provides several optional components which can be enabled via [Cargo `[features]`](https://doc.rust-lang.org/cargo/reference/features.html):
20
21- `gen`: To generate protobuf client with the latest protobuf version instead of
22  using the pre-generated client.
23
24- `nightly`: Enable nightly only features.
25
26- `process`: Enable [process metrics](https://prometheus.io/docs/instrumenting/writing_clientlibs/#process-metrics) support.
27
28- `push`: Enable [push metrics](https://prometheus.io/docs/instrumenting/pushing/) support.
29
30### Static Metric
31
32When using a `MetricVec` with label values known at compile time
33prometheus-static-metric reduces the overhead of retrieving the concrete
34`Metric` from a `MetricVec`.
35
36See [static-metric](./static-metric) directory for details.
37
38## Thanks
39
40- [brian-brazil](https://github.com/brian-brazil)
41- [ccmtaylor](https://github.com/ccmtaylor)
42- [kamalmarhubi](https://github.com/kamalmarhubi)
43- [lucab](https://github.com/lucab)
44- [koushiro](https://github.com/koushiro)
45