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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4511e10d000ae0e63ad9e361ca502d40ea8a3ae0a06f71f24a840289c7254dbc |
|
MD5 | efced2ebfb4966c7b885ffc514898ed0 |
|
BLAKE2b-256 | 3152762536c2cb0e6f05dc131978582e9d8cf82e707bc9af687d6eeb008b9f76 |
Close
Hashes for gitlab_job_exporter-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9957ace0634d1d922d7beb6f8014c9c43b07ddb47650987704ac7435ae41c73b |
|
MD5 | a23f471aff3fbb3a3dd98130e2c5addc |
|
BLAKE2b-256 | a0ee81a957901393ce932bc57ce7d7481d22083b742946e78f50760e7f57ac02 |