Skip to content

prometheus exporter to provide some runtime metrics of gitlab jobs

Notifications You must be signed in to change notification settings

cloudcentric/gitlab_job_exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitlab Job Exporter

Prometheus exporter providing some metrics concerning gitlab job runtime

Installation

pip install gitlab_job_exporter

In the example folder exists a sample systemd unit file template.

Usage

Configuration file

/etc/prometheus/gitlab_job_exporter.json

The exporter needs a configuration file in json format. The location of that file has to be passed via command line argument:

./gitlab_job_exporter --config /etc/prometheus/gitlab_job_exporter.json

Example configuration file:

{
  "port":"9118",
  "interval":"10",
  "git_url":"<gitlab-url>",
  "git_project_id":"1234",
  "git_token":"XXXXXYYYYYYZZZZZZ",
  "git_branch":"gitlab_branch_example"
}

About

prometheus exporter to provide some runtime metrics of gitlab jobs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages