{"id":22131112,"url":"https://github.com/slamdev/promrule-exporter","last_synced_at":"2025-09-05T02:11:39.885Z","repository":{"id":68009932,"uuid":"526535814","full_name":"slamdev/promrule-exporter","owner":"slamdev","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T20:16:41.000Z","size":35,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-10T11:44:32.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/slamdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2022-08-19T09:04:08.000Z","updated_at":"2022-08-19T09:04:38.000Z","dependencies_parsed_at":"2023-12-15T21:45:03.525Z","dependency_job_id":"93bde4e6-7b16-48e6-ba54-3e3ed348fbbe","html_url":"https://github.com/slamdev/promrule-exporter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/slamdev/promrule-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slamdev%2Fpromrule-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slamdev%2Fpromrule-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slamdev%2Fpromrule-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slamdev%2Fpromrule-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slamdev","download_url":"https://codeload.github.com/slamdev/promrule-exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slamdev%2Fpromrule-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273699712,"owners_count":25152286,"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-05T02:00:09.113Z","response_time":402,"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-12-01T18:29:57.213Z","updated_at":"2025-09-05T02:11:39.840Z","avatar_url":"https://github.com/slamdev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# promrule-exporter\n\nA simple tool that exports all PrometheusRule resources from a cluster and converts them to a set of files in\n[native rule format](https://cortexmetrics.io/docs/api/#example-response) that is readable by cortex or mimir.\n\nThis tool is meant to be used as a CronJob together with [cortextool](https://github.com/grafana/cortex-tools) or\n[mimirtool](https://grafana.com/docs/mimir/latest/operators-guide/tools/mimirtool/).\n\nE.g.:\n\n```yaml\napiVersion: batch/v1\nkind: CronJob\nmetadata:\n  name: rule-syncer\nspec:\n  schedule: \"*/5 * * * *\"\n  jobTemplate:\n    spec:\n      template:\n        spec:\n          restartPolicy: OnFailure\n          initContainers:\n            - name: promrule-exporter\n              image: slamdev/promrule-exporter\n              args: [ '--exclude-alert-rules=true', '--output-dir=/out' ]\n              volumeMounts:\n                - name: rules\n                  mountPath: /out\n          containers:\n            - name: rule-syncer\n              image: grafana/mimirtool:2.2.0\n              args: [ 'rules', 'sync', '--address=http://mimir', '--id=anonymous', '--rule-dirs=/in' ]\n              volumeMounts:\n                - name: rules\n                  mountPath: /in\n          volumes:\n            - name: rules\n              emptyDir: { }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslamdev%2Fpromrule-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslamdev%2Fpromrule-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslamdev%2Fpromrule-exporter/lists"}