Skip to content

contorion/jenkins_exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins Exporter

Build Status

Jenkins exporter for prometheus.io, written in python.

This exporter is based on Robust Perception's python exporter example: For more information see (http://www.robustperception.io/writing-a-jenkins-exporter-in-python)

Usage

jenkins_exporter.py [-h] [-j jenkins] [--user user] [-k]
                    [--password password] [-p port]

optional arguments:
  -h, --help            show this help message and exit
  -j jenkins, --jenkins jenkins
                        server url from the jenkins api
  --user user           jenkins api user
  --password password   jenkins api password
  -p port, --port port  Listen to this port
  -k, --insecure        Allow connection to insecure Jenkins API

Example

docker run -d -p 9118:9118 lovoo/jenkins_exporter:latest -j http://jenkins:8080 -p 9118

Installation

git clone [email protected]:lovoo/jenkins_exporter.git
cd jenkins_exporter
pip install -r requirements.txt

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

About

Prometheus Metrics exporter for Jenkins

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 93.9%
  • Makefile 3.1%
  • Dockerfile 3.0%