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"
}
```
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.
Source Distribution
Built Distribution
Close
Hashes for gitlab-job-exporter-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 875c654b374dc1246116893943a7c8244ae68e2831d94ef4fb39b2f1650f5dc0 |
|
MD5 | be882c41dc3eb895db027a3f651329f5 |
|
BLAKE2b-256 | 34cfa7fa72f29a73f583e4c81f6dea905145cd021fc849c82ce63c2bd99f9d33 |
Close
Hashes for gitlab_job_exporter-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05dbb9cd425a5519f25759654a3037bd33c627dc312967e9e5c115e961c287a4 |
|
MD5 | 72f847d7d4742a357254070be47cd759 |
|
BLAKE2b-256 | 5043e3b1a426e736a0f88ddbe5a1dae248fcecef0e95d8adc2910ca03d3f94d3 |