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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c76a7a65cd4076a1fcf2beaa941ad25b90414a52137b5462529532ffb24a600 |
|
MD5 | f3e27e881ee486b3791baf1a5b2d3587 |
|
BLAKE2b-256 | 374f41664057a16f2123c629a296d922f367d9cb5efc394a8ab3f502e3e42206 |
Close
Hashes for gitlab_job_exporter-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d726af18d7f21cde7e1416bfe2909f440060f129b856963d3431e89b2ae4567d |
|
MD5 | 5ba527e1fdeee46a926ea0cec3201f40 |
|
BLAKE2b-256 | f495d37048d7f79ebb7a1a67793c751a32fe8c12dc801dcf47d4080a91d9319d |