IntegrationsCurrently available IntegrationsJenkins Integration

Jenkins Integration for Grafana Cloud

Jenkins is a free and open source automation server. It helps automate the parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery. It is a server-based system that runs in servlet containers such as Apache Tomcat.

This integration focuses on the state of the build infrastructure, as well as the duration and health of defined jobs.

Use the walkthrough in Grafana Cloud to install the Jenkins Integration.

Pre-install configuration for the Jenkins Integration

In order for the integration to work, the prometheus plugin must be installed in your Jenkins instance.

Post-install configuration for the Jenkins Integration

In the agent configuration file, the agent must be pointed to your Jenkins server, such as jenkins:8080 in the example below, that exposes a /prometheus endpoint.

prometheus:
  wal_directory: /tmp/wal
  configs:
    - name: integrations
      scrape_configs:
        - job_name: integrations/jenkins
          metrics_path: /api/prometheus
          static_configs:
            - targets: ['jenkins:8080']
      remote_write:
        - url: http://cortex:9009/api/prom/push

If you are using a non-standard PROMETHEUS_NAMESPACE with the prometheus plugin, you may adjust the dashboard to query your metrics by chaning the value of the ‘prefix’ template variable.