Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.github/ | H | 03-May-2022 | - | 161 | 123 | |
benches/ | H | 03-May-2022 | - | 544 | 372 | |
docs/ | H | 03-May-2022 | - | 64 | 42 | |
examples/ | H | 03-May-2022 | - | 410 | 312 | |
proto/ | H | 03-May-2022 | - | 2,615 | 2,143 | |
src/ | H | 03-May-2022 | - | 6,866 | 4,724 | |
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
.cargo_vcs_info.json | H A D | 01-Jan-1970 | 74 | 6 | 5 | |
.gitignore | H A D | 01-Jan-1970 | 277 | 29 | 20 | |
.travis.yml | H A D | 01-Jan-1970 | 789 | 42 | 35 | |
CHANGELOG.md | H A D | 01-Jan-1970 | 2.4 KiB | 90 | 45 | |
CODE_OF_CONDUCT.md | H A D | 01-Jan-1970 | 3.1 KiB | 47 | 28 | |
Cargo.lock | H A D | 01-Jan-1970 | 37.4 KiB | 1,541 | 1,379 | |
Cargo.toml | H A D | 01-Jan-1970 | 2.3 KiB | 110 | 90 | |
Cargo.toml.orig-cargo | H A D | 01-Jan-1970 | 1.7 KiB | 76 | 61 | |
LICENSE | H A D | 01-Jan-1970 | 11.1 KiB | 202 | 169 | |
Makefile | H A D | 01-Jan-1970 | 888 | 34 | 23 | |
README.md | H A D | 01-Jan-1970 | 1.6 KiB | 45 | 28 | |
build.rs | H A D | 01-Jan-1970 | 466 | 20 | 15 |
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