{"id":50171264,"url":"https://github.com/gmiroshnykov/prometheus-reloader","last_synced_at":"2026-05-24T23:36:57.450Z","repository":{"id":64303791,"uuid":"257001023","full_name":"gmiroshnykov/prometheus-reloader","owner":"gmiroshnykov","description":"A sidecar that reloads Prometheus when config file or rule files change","archived":false,"fork":false,"pushed_at":"2020-04-19T22:43:26.000Z","size":37,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T12:43:06.563Z","etag":null,"topics":["prometheus","sidecar"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/gmiroshnykov.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}},"created_at":"2020-04-19T13:04:19.000Z","updated_at":"2022-08-09T06:43:14.000Z","dependencies_parsed_at":"2023-01-15T10:00:37.030Z","dependency_job_id":null,"html_url":"https://github.com/gmiroshnykov/prometheus-reloader","commit_stats":null,"previous_names":["laggyluke/prometheus-reloader"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gmiroshnykov/prometheus-reloader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmiroshnykov%2Fprometheus-reloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmiroshnykov%2Fprometheus-reloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmiroshnykov%2Fprometheus-reloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmiroshnykov%2Fprometheus-reloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gmiroshnykov","download_url":"https://codeload.github.com/gmiroshnykov/prometheus-reloader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmiroshnykov%2Fprometheus-reloader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33455025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-24T19:21:36.376Z","status":"ssl_error","status_checked_at":"2026-05-24T19:21:10.562Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["prometheus","sidecar"],"created_at":"2026-05-24T23:36:56.360Z","updated_at":"2026-05-24T23:36:57.443Z","avatar_url":"https://github.com/gmiroshnykov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prometheus-reloader\n\nA sidecar that reloads Prometheus when config file or rule files change.\n\n\n## Usage\n\n```\n$ prometheus-reloader -config-file testdata/prometheus.yml\nI0419 15:30:46.124751   72508 main.go:33] Starting prometheus-reloader 7f0d912 (7f0d912bba736278b2752943bf6287b4658b3490)\n```\n\nAfter changing `prometheus.yml` or any of the rule files:\n\n```\nI0419 15:31:06.127397   72508 reloader.go:115] Config change detected, reloading Prometheus at http://127.0.0.1:9090/-/reload\n```\n\n## Flags\n\n```\n  -config-file string\n    \tPrometheus configuration file path (default \"/etc/prometheus/prometheus.yml\")\n  -reload-url string\n    \tPrometheus reload endpoint (default \"http://127.0.0.1:9090/-/reload\")\n  -watch-interval duration\n    \tInterval for watching config and rules files for changes (default 10s)\n```\n\nRun `prometheus-reloader -h` to see the rest of the flags.\n\n\n## Testing with skaffold\n\n1. Run:\n```\nskaffold dev --port-forward\n```\n\n2. Open [http://127.0.0.1:9090/config](http://127.0.0.1:9090/config) in your browser.\n\n3. Make some changes to `k8s/configmap.yaml`.\n  Skaffold will apply the changes automatically once you save the file.\n\n4. Wait for [up to two minutes](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#mounted-configmaps-are-updated-automatically) for Kubernetes to propagate ConfigMap changes.\n\n5. Observe something like:\n```\n[prometheus reloader] I0419 14:27:22.139774       1 reloader.go:115] Config change detected, reloading Prometheus at http://127.0.0.1:9090/-/reload\n[prometheus] level=info ts=2020-04-19T14:27:22.143Z caller=main.go:788 msg=\"Loading configuration file\" filename=/etc/prometheus/prometheus.yml\n[prometheus] level=info ts=2020-04-19T14:27:22.147Z caller=main.go:816 msg=\"Completed loading of configuration file\" filename=/etc/prometheus/prometheus.yml\n```\n\n6. Refresh Prometheus config page in your browser to make sure Prometheus has been reloaded.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmiroshnykov%2Fprometheus-reloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmiroshnykov%2Fprometheus-reloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmiroshnykov%2Fprometheus-reloader/lists"}