{"id":13616791,"url":"https://github.com/lest/prometheus-rpm","last_synced_at":"2025-04-14T03:31:37.562Z","repository":{"id":38816639,"uuid":"60008816","full_name":"lest/prometheus-rpm","owner":"lest","description":"Prometheus RPM Packages","archived":false,"fork":false,"pushed_at":"2025-04-08T08:24:19.000Z","size":12945,"stargazers_count":249,"open_issues_count":26,"forks_count":110,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-08T09:31:06.718Z","etag":null,"topics":["centos","centos7","prometheus","rpm"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/lest.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-30T12:34:19.000Z","updated_at":"2025-03-24T10:53:46.000Z","dependencies_parsed_at":"2023-10-12T16:29:36.723Z","dependency_job_id":"09b928e1-bd44-4960-a83a-2a4389a9bdc2","html_url":"https://github.com/lest/prometheus-rpm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lest%2Fprometheus-rpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lest%2Fprometheus-rpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lest%2Fprometheus-rpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lest%2Fprometheus-rpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lest","download_url":"https://codeload.github.com/lest/prometheus-rpm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248815553,"owners_count":21165945,"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":["centos","centos7","prometheus","rpm"],"created_at":"2024-08-01T20:01:33.349Z","updated_at":"2025-04-14T03:31:32.551Z","avatar_url":"https://github.com/lest.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Prometheus RPM Packages\n\n![Build Status](https://github.com/lest/prometheus-rpm/actions/workflows/build.yml/badge.svg) ![Lint Status](https://github.com/lest/prometheus-rpm/actions/workflows/linter.yml/badge.svg) ![Update Status](https://github.com/lest/prometheus-rpm/actions/workflows/check_new_versions.yml/badge.svg)\n\nThe repository contains the files needed to build [Prometheus][1] RPM packages\nfor CentOS 7 \u0026 8 and CentOS Stream 9.\n\n## Installing\nThe packages are available in [the packagecloud repository][2] and can be used\nby adding the following `/etc/yum.repos.d/prometheus.repo`:\n\n### CentOS\n``` conf\n[prometheus]\nname=prometheus\nbaseurl=https://packagecloud.io/prometheus-rpm/release/el/$releasever/$basearch\nrepo_gpgcheck=1\nenabled=1\ngpgkey=https://packagecloud.io/prometheus-rpm/release/gpgkey\n       https://raw.githubusercontent.com/lest/prometheus-rpm/master/RPM-GPG-KEY-prometheus-rpm\ngpgcheck=1\nmetadata_expire=300\n```\n\n## Adding a new exporter\n### Auto generation\n1. Add a new section under `packages` in `templating.yaml` with the required information (overriding any defaults if required).\n2. Create a new directory with the name of the exporter and populate it with a file named `\u003cexporter_name\u003e.default` which will contain the default environment variables passed to the init and unit files.\n3. Once this is done add this exporter to the list of `AUTO_GENERATED` exporters in `Makefile`.\n4. Test that you can build this RPM using the command `make \u003cexporter_name\u003e`.\n\n### Custom\n1. Add the exporter to the list of `MANUAL` in the file `Makefile`.\n2. Make a new directory with the same name as the exporter.\n3. Populate this directory with all the required files to build the RPM.\n4. Test that you can build this RPM using the command `make \u003cexporter_name\u003e`.\n\n## Build RPMs manually\n\nBuild all packages with:\n\n``` shell\nmake all\n```\n\nor build a single package only, e.g.:\n\n``` shell\nmake node_exporter\n```\n\nThe resulting RPMs will be created in the `_dist7` or `_dist8` directories depending on the version of CentOS that they were built for.\n\n## Ansible role\n\nAn [Ansible][3] role which installs Prometheus packages from these RPMs is\navailable in [Github][4] or in [Galaxy][5].\n\n[1]: https://prometheus.io\n[2]: https://packagecloud.io/prometheus-rpm/release\n[3]: https://www.ansible.com/\n[4]: https://github.com/cogini/ansible-role-prometheus-rpm\n[5]: https://galaxy.ansible.com/cogini/prometheus-rpm/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flest%2Fprometheus-rpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flest%2Fprometheus-rpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flest%2Fprometheus-rpm/lists"}