prometheus-rpm

Prometheus RPM Packages

Github星跟蹤圖

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.

主要指標

概覽
名稱與所有者lest/prometheus-rpm
主編程語言Python
編程語言Makefile (語言數: 4)
平台
許可證Apache License 2.0
所有者活动
創建於2016-05-30 12:34:19
推送於2025-05-30 16:24:11
最后一次提交2025-03-24 12:53:41
發布數0
用户参与
星數250
關注者數15
派生數110
提交數2.1k
已啟用問題?
問題數68
打開的問題數9
拉請求數857
打開的拉請求數40
關閉的拉請求數148
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?