{"id":25287975,"url":"https://github.com/paberr/metrics-prometheus-client","last_synced_at":"2025-10-06T23:12:57.420Z","repository":{"id":249488457,"uuid":"831652008","full_name":"paberr/metrics-prometheus-client","owner":"paberr","description":"Creating compatibility between `metrics` and `prometheus_client`.","archived":false,"fork":false,"pushed_at":"2024-07-23T17:28:14.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T17:10:33.190Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/paberr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-21T08:05:00.000Z","updated_at":"2024-07-23T17:28:17.000Z","dependencies_parsed_at":"2024-07-21T09:45:55.458Z","dependency_job_id":"846b69da-99ad-491b-8d9a-892401fc074a","html_url":"https://github.com/paberr/metrics-prometheus-client","commit_stats":null,"previous_names":["paberr/metrics-prometheus-client"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paberr%2Fmetrics-prometheus-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paberr%2Fmetrics-prometheus-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paberr%2Fmetrics-prometheus-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paberr%2Fmetrics-prometheus-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paberr","download_url":"https://codeload.github.com/paberr/metrics-prometheus-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247517916,"owners_count":20951719,"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":[],"created_at":"2025-02-12T22:52:48.823Z","updated_at":"2025-10-06T23:12:52.390Z","avatar_url":"https://github.com/paberr.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# metrics-prometheus-client\nCreating compatibility between `metrics` and `prometheus_client`.\n\n## Usage\n\n```rust\nuse metrics_prometheus_client::install;\nuse prometheus_client::{encoding::text::encode, registry::Registry};\n\nlet collector = install();\n\n// Use `metrics` crate interfaces.\nmetrics::counter!(\"count\", \"whose\" =\u003e \"mine\", \"kind\" =\u003e \"owned\").increment(1);\n\nlet mut registry = Registry::default();\nregistry.register_collector(Box::new(collector));\n\nlet mut report = String::new();\nencode(\u0026mut report, \u0026registry).unwrap();\n\nassert_eq!(\n    report.trim(),\n    \"# HELP count \\n# TYPE count counter\\ncount_total{whose=\\\"mine\\\",kind=\\\"owned\\\"} 1\\n# EOF\"\n        .trim(),\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaberr%2Fmetrics-prometheus-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaberr%2Fmetrics-prometheus-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaberr%2Fmetrics-prometheus-client/lists"}