{"id":28200976,"url":"https://github.com/payu/pushgateway-cleaner","last_synced_at":"2025-06-12T18:31:59.284Z","repository":{"id":43903077,"uuid":"313878569","full_name":"PayU/pushgateway-cleaner","owner":"PayU","description":"Clean metrics with defined TTL from Prometheus push-gateway","archived":false,"fork":false,"pushed_at":"2023-06-02T20:31:34.000Z","size":159,"stargazers_count":5,"open_issues_count":5,"forks_count":5,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-16T22:14:06.433Z","etag":null,"topics":["prometheus","pushgateway"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/PayU.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-18T09:05:30.000Z","updated_at":"2022-06-06T01:52:12.000Z","dependencies_parsed_at":"2022-08-26T08:00:37.653Z","dependency_job_id":null,"html_url":"https://github.com/PayU/pushgateway-cleaner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PayU/pushgateway-cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PayU%2Fpushgateway-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PayU%2Fpushgateway-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PayU%2Fpushgateway-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PayU%2Fpushgateway-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PayU","download_url":"https://codeload.github.com/PayU/pushgateway-cleaner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PayU%2Fpushgateway-cleaner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259519257,"owners_count":22870327,"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":["prometheus","pushgateway"],"created_at":"2025-05-16T22:14:47.395Z","updated_at":"2025-06-12T18:31:59.270Z","avatar_url":"https://github.com/PayU.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pushgateway Cleaner\n\nThis project purpose is to clean old metrics from Prometheus pushgateway.  \nIt works as job and not a service, which means that after cleanup the process will die.\n\n## Environment variables\n| Variable | Description | Examples |\n| -----------------------------      | - | - |\n| PUSHGATEWAY_URL                    | the PushGateway endpoint (url + port) | http://100.10.102.23:9091 |\n| TTL_HOURS                          | metrics created during this time will not be removed | 24 |\n| SLACK_WEBHOOK_URL                  | optional slack webhook url to send notification upon successful cleanup | |\n\n\n## Starting local \n```npm install```  \n```PUSHGATEWAY_URL=http://localhost:9091 TTL_HOURS=24 npm run start```\n\n## Running tests\n| Type | Command |  \n| - | - |  \n| Integration Tests | PUSHGATEWAY_URL=http://localhost:9091 TTL_HOURS=24 npm run test      | \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpayu%2Fpushgateway-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpayu%2Fpushgateway-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpayu%2Fpushgateway-cleaner/lists"}