{"id":13472445,"url":"https://github.com/prometheus/client_rust","last_synced_at":"2025-12-12T13:12:24.403Z","repository":{"id":37874762,"uuid":"323438715","full_name":"prometheus/client_rust","owner":"prometheus","description":"Prometheus / OpenMetrics client library in Rust","archived":false,"fork":false,"pushed_at":"2025-02-27T08:57:26.000Z","size":367,"stargazers_count":519,"open_issues_count":63,"forks_count":87,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-09T22:50:49.333Z","etag":null,"topics":["instrumentation","metrics","monitoring","openmetrics","prometheus"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prometheus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-21T20:17:25.000Z","updated_at":"2025-03-09T16:03:41.000Z","dependencies_parsed_at":"2024-01-11T17:47:59.063Z","dependency_job_id":"ad5e2d78-3838-498b-8bf9-57d29fa1e6f0","html_url":"https://github.com/prometheus/client_rust","commit_stats":{"total_commits":199,"total_committers":22,"mean_commits":9.045454545454545,"dds":0.2160804020100503,"last_synced_commit":"987037cb3765ac14037e30754f96836d6884ef4a"},"previous_names":["mxinden/rust-open-metrics-client"],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prometheus%2Fclient_rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prometheus%2Fclient_rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prometheus%2Fclient_rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prometheus%2Fclient_rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prometheus","download_url":"https://codeload.github.com/prometheus/client_rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245681467,"owners_count":20655202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["instrumentation","metrics","monitoring","openmetrics","prometheus"],"created_at":"2024-07-31T16:00:54.702Z","updated_at":"2025-12-12T13:12:24.349Z","avatar_url":"https://github.com/prometheus.png","language":"Rust","readme":"# Prometheus Rust client library\n\n[![Test Status](https://github.com/prometheus/client_rust/actions/workflows/rust.yml/badge.svg?event=push)](https://github.com/prometheus/client_rust/actions)\n[![Crate](https://img.shields.io/crates/v/prometheus-client.svg)](https://crates.io/crates/prometheus-client)\n[![API](https://docs.rs/prometheus-client/badge.svg)](https://docs.rs/prometheus-client)\n\n[Rust](https://github.com/rust-lang/) client library implementation of the [Open\nMetrics specification](https://github.com/OpenObservability/OpenMetrics). Allows\ndevelopers to instrument applications and thus enables operators to monitor said\napplications with monitoring systems like [Prometheus](https://prometheus.io/).\n\n**Documentation**: https://docs.rs/prometheus-client/\n\n## Goals\n\n- No `unsafe`. Don't use unsafe Rust within the library itself.\n\n- Type safe. Leverage Rust's type system to catch common instrumentation\n  mistakes at compile time.\n\n- Fast. Don't force users to worry about the performance impact of\n  instrumentation. Instead encourage users to instrument often and extensively.\n\n## Specification Compliance\n\nBelow is a list of properties where this client library implementation lags\nbehind the Open Metrics specification. Not being compliant with all requirements\n(`MUST` and `MUST NOT`) of the specification is considered a bug and likely to\nbe fixed in the future. Contributions in all forms are most welcome.\n\n- State set metric.\n\n- Enforce \"A Histogram MetricPoint MUST contain at least one bucket\".\n\n- Enforce \"A MetricFamily MUST have a [...] UNIT metadata\".\n\n- Enforce \"MetricFamily names [...] MUST be unique within a MetricSet.\"\n\n- Enforce \"Names SHOULD be in snake_case\".\n\n- Enforce \"MetricFamily names beginning with underscores are RESERVED and MUST\n  NOT be used unless specified by this standard\".\n\n- Enforce \"Exposers SHOULD avoid names that could be confused with the suffixes\n  that text format sample metric names use\".\n\n- Gauge histogram metric.\n\n- Allow \"A MetricPoint in a Metric with the type [Counter, Histogram] SHOULD have a Timestamp\n  value called Created\".\n\n- Summary metric.\n\n## Related Libraries\n\n- [rust-prometheus](https://github.com/tikv/rust-prometheus/): See [tikv/rust-prometheus/#392](https://github.com/tikv/rust-prometheus/issues/392) for a high-level comparison.\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n#### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","funding_links":[],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprometheus%2Fclient_rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprometheus%2Fclient_rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprometheus%2Fclient_rust/lists"}