{"id":19686354,"url":"https://github.com/closeio/prometheus-health-checker","last_synced_at":"2026-08-03T16:31:32.389Z","repository":{"id":66129473,"uuid":"394782435","full_name":"closeio/prometheus-health-checker","owner":"closeio","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-11T14:59:47.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-09-07T06:36:34.448Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/closeio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-08-10T21:12:18.000Z","updated_at":"2023-03-16T19:57:37.000Z","dependencies_parsed_at":"2023-07-26T22:45:10.976Z","dependency_job_id":null,"html_url":"https://github.com/closeio/prometheus-health-checker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/closeio/prometheus-health-checker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Fprometheus-health-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Fprometheus-health-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Fprometheus-health-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Fprometheus-health-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/closeio","download_url":"https://codeload.github.com/closeio/prometheus-health-checker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Fprometheus-health-checker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274005336,"owners_count":25205934,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-11-11T18:27:41.859Z","updated_at":"2026-08-03T16:31:32.382Z","avatar_url":"https://github.com/closeio.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prometheus-health-checker\n\nA small health check adapter for retrieving and interpreting metrics from prometheus exporter in a process,\nand communicating if the process is seen as healthy or not with a process exit code.\n\nIntended to use with kubernetes or docker-compose.\n\n# Features\n\n- Check for \"up\" metrics, where expected value is 1.0 or above\n- Check for \"fresh\" metrics, where expected value is close to current unix time, but not too far in the past.\n- Check multiple metrics at once\n- Fast\n- Sensible defaults\n- When a check fails, it outputs to stderr what exactly failed before exiting with status code 1, eliminating guesswork. Just look at your logs.\n- Handles and reports connection failures correctly\n- When everything looks as expected, it silently exits with status code 0\n\n# Example\n\n`prom_health_check --check-up cio_service_state --check-fresh last_iteration_time --fresh-for 300`\n\n# Build\n\n`cargo build --release` will output the binary to `target/release/prom_health_check`\n\n# Usage\n\n(run with --help) to get the same\n\n```\nPrometheus exporter health check\n\nUSAGE:\n    prom_health_check [OPTIONS]\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n        --check-fresh \u003ccheck-fresh\u003e...    Checks if this metric is \"fresh\", not too far from current unix time in\n                                          seconds.\n        --check-up \u003ccheck-up\u003e...          Checks if this metric is \"up\", 1.0 or greater\n        --fresh-for \u003cfresh-for\u003e           For how many seconds a metric is considered fresh [default: 300]\n        --url \u003curl\u003e                       URL of prometheus exporter [default: http://localhost:8091]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloseio%2Fprometheus-health-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloseio%2Fprometheus-health-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloseio%2Fprometheus-health-checker/lists"}