Skip to content
Prometheus RPM Packages
Python Smarty Makefile Shell
Branch: master
Clone or download
lest Merge pull request #137 from karlism/patch-5
Update to Prometheus 2.12.0
Latest commit 784fc53 Aug 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
alertmanager Update Alertmanager to 0.18.0 Jul 8, 2019
apache_exporter Use RPM macros and install -D May 16, 2018
bin Sign RPM packages Oct 28, 2016
blackbox_exporter blackbox_exporter version bump Mar 18, 2019
collectd_exporter Use RPM macros and install -D May 16, 2018
consul_exporter Bump consul exporter version Nov 20, 2018
elasticsearch_exporter Use RPM macros and install -D May 16, 2018
graphite_exporter bump graphite_exporter to 0.4.2 Dec 29, 2018
haproxy_exporter Simplify templating script by using YAML anchors to handle merging de… Oct 2, 2018
jmx_exporter Use RPM macros and install -D May 16, 2018
kafka_exporter Create kafka_exporter.default Feb 19, 2019
mysqld_exporter Merge pull request #38 from ekohl/patch-1 Jun 3, 2018
nginx_exporter rename Feb 21, 2019
node_exporter Merge pull request #38 from ekohl/patch-1 Jun 3, 2018
ping_exporter Update ping exporter Dec 11, 2018
postgres_exporter Update postgres expoter to 0.5.0 Jul 5, 2019
process_exporter Fix URL. Jun 14, 2019
prometheus Use RPM macros and install -D May 16, 2018
prometheus2 Update to Prometheus 2.12.0 Aug 19, 2019
pushgateway Pushgateway version bump - 0.9.1 Aug 5, 2019
rabbitmq_exporter Bump rabbitmq_exporter from 0.26.0 to 0.28.0 Jun 1, 2018
redis_exporter Fix redis_exporter Jan 8, 2019
sachet sachet version 0.2.0 Dec 13, 2018
snmp_exporter Update snmp_exporter.spec Feb 21, 2019
statsd_exporter Rev exporters Jan 8, 2019
templates rename Feb 21, 2019
thanos Update to Thanos 0.6.1 Aug 14, 2019
.gitignore Update .gitignore Feb 19, 2019
.travis.yml fix ci Jun 3, 2018
LICENSE Initial commit May 30, 2016
Makefile Forgot to commit. Jun 14, 2019
README.md Documentation improvements Apr 17, 2019
RPM-GPG-KEY-prometheus-rpm Sign RPM packages Oct 28, 2016
generate.py Simplify templating script by using YAML anchors to handle merging de… Oct 2, 2018
requirements.txt improve templating by using template inheritance Jun 11, 2018
secret.asc.enc Sign RPM packages Oct 28, 2016
templating.yaml bump mysqld_exporter to v0.12.1 Aug 14, 2019

README.md

Prometheus RPM Packages

Build Status

The repository contains the files needed to build Prometheus RPM packages for CentOS 6 & 7.

Installing

The packages are available in the packagecloud repository and can be used by adding the following /etc/yum.repos.d/prometheus.repo:

CentOS 7

[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

Adding a new exporter

Auto generation (CentOS 6 & 7)

  1. Add a new section under packages in templating.yaml with the required information (overriding any defaults if required).
  2. Create a new directory with the name of the exporter and populate it with a file named <exporter_name>.default which will contain the default environment variables passed to the init and unit files.
  3. Once this is done add this exporter to the list of AUTO_GENERATED expoters in Makefile.
  4. Test that you can build this RPM using the command make <exporter_name>.

Custom (CentOS 7 only)

  1. Add the exporter to the list of PACKAGES7 in the file Makefile.
  2. Make a new directory with the same name as the exporter.
  3. Populate this directory with all the required files to build the RPM.
  4. Test that you can build this RPM using the command make <exporter_name>.

Build RPMs manually

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 _dist6 or _dist7 directory depending on the version of CentOS that they were built for. builds in _dist6 may also work for el5.

Ansible role

An Ansible role which installs Prometheus packages from these RPMs is available in Github or in Galaxy.

You can’t perform that action at this time.