Skip to content

marklemoine/prometheus-rpms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prometheus RPM Packages

The repository contains the files needed to build Prometheus RPM packages for OracleLinux 7.

Adding a new exporter

Auto generation (OracleLinux 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 (OracleLinux 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 _dist7 directory depending on the version of OracleLinux that they were built for.

Ansible role

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

About

Prometheus RPM Packages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 36.4%
  • Smarty 27.4%
  • Shell 21.9%
  • Makefile 14.3%