Skip to main content

Package to scrape running_time, duration_time, status, etc. of Gitlab jobs using prometheus time series format

Project description

# 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:

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


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gitlab-job-exporter, version 0.0.9
Filename, size File type Python version Upload date Hashes
Filename, size gitlab_job_exporter-0.0.9-py3-none-any.whl (4.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size gitlab-job-exporter-0.0.9.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page