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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gitlab-job-exporter-0.0.9.tar.gz.
File metadata
- Download URL: gitlab-job-exporter-0.0.9.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/18.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4511e10d000ae0e63ad9e361ca502d40ea8a3ae0a06f71f24a840289c7254dbc
|
|
| MD5 |
efced2ebfb4966c7b885ffc514898ed0
|
|
| BLAKE2b-256 |
3152762536c2cb0e6f05dc131978582e9d8cf82e707bc9af687d6eeb008b9f76
|
File details
Details for the file gitlab_job_exporter-0.0.9-py3-none-any.whl.
File metadata
- Download URL: gitlab_job_exporter-0.0.9-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/18.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9957ace0634d1d922d7beb6f8014c9c43b07ddb47650987704ac7435ae41c73b
|
|
| MD5 |
a23f471aff3fbb3a3dd98130e2c5addc
|
|
| BLAKE2b-256 |
a0ee81a957901393ce932bc57ce7d7481d22083b742946e78f50760e7f57ac02
|