This the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

    Jenkins

    Jenkins is an open-source automation server which helps to automate part of the software development process, permitting continuous integration and facilitating the technical aspects of continuous delivery. It supports version control tools (such as Subversion, Git, Mercurial, etc), can execute Apache Ant, Apache Maven and SBT-based projects, and allows shell scripts and Windows batch commands. If Jenkins is installed on your environment, the Sysdig agent will automatically connect and collect all Jenkins metrics. See the Default Configuration section, below.

    This page describes the default configuration settings, the metrics available for integration, and a sample result in the Sysdig Monitor UI.

    Jenkins Setup

    Requires the standard Jenkins server setup with one or more Jenkins Jobs running on it.

    Sysdig Agent Configuration

    Review how to Edit dragent.yaml to Integrate or Modify Application Checks.

    Remember! Never edit dragent.default.yaml directly; always edit only dragent.yaml.

    Default Configuration

    By default, Sysdig’s dragent.default.yaml uses the following code to connect with Jenkins and collect basic metrics.

      - name: jenkins
        pattern:
          comm: java
          port: 50000
        conf:
          name: default
          jenkins_home: /var/lib/jenkins #this depends on your environment
    

    Jenkins Folders Plugin

    By default, the Sysdig agent does not monitor jobs under job folders created using Folders plugin.

    Set jobs_folder_depth to monitor these jobs. Job folders are scanned recursively for jobs until the designated folder depth is reached. The default value = 1.

    app_checks:
      - name: jenkins
        pattern:
          comm: java
          port: 50000
        conf:
          name: default
          jenkins_home: /var/lib/jenkins
          jobs_folder_depth: 3
    

    Metrics Available

    The following metrics will be available only after running one or more Jenkins jobs. They handle queue size, job duration, and job waiting time.

    See Jenkins Metrics.

    Result in the Monitor UI