Prometheus RPM Packages
The repository contains the files needed to build Prometheus RPM packages for CentOS 7 & 8 and CentOS Stream 9.
The packages are available in the packagecloud repository and can be used
by adding the following /etc/yum.repos.d/prometheus.repo
:
[prometheus]
name=prometheus
baseurl=https://packagecloud.io/prometheus-rpm/release/el/$releasever/$basearch
repo_gpgcheck=1
enabled=1
gpgkey=https://packagecloud.io/prometheus-rpm/release/gpgkey
https://raw.githubusercontent.com/lest/prometheus-rpm/master/RPM-GPG-KEY-prometheus-rpm
gpgcheck=1
metadata_expire=300
packages
in templating.yaml
with the required information (overriding any defaults if required).<exporter_name>.default
which will contain the default environment variables passed to the init and unit files.AUTO_GENERATED
exporters in Makefile
.make <exporter_name>
.MANUAL
in the file Makefile
.make <exporter_name>
.Build all packages with:
make all
or build a single package only, e.g.:
make node_exporter
The resulting RPMs will be created in the _dist7
or _dist8
directories depending on the version of CentOS that they were built for.
An Ansible role which installs Prometheus packages from these RPMs is available in Github or in Galaxy.