This InfluxDB Template can be used to monitor a Jenkins instance
In the InfluxDB UI, go to Settings->Templates and enter this URL: https://raw.githubusercontent.com/influxdata/community-templates/master/jenkins/jenkins.yml
If you have your InfluxDB credentials configured in the CLI, you can install this template with:
influx apply -u https://raw.githubusercontent.com/influxdata/community-templates/master/jenkins/jenkins.yml
Jenkins - High-Resolution
Dashboard (see screenshot above)Jenkins - Jobs
DashboardJenkins - Single Job
DashboardJenkins
Telegraf configuration- Variables for
jenkinsJobNames
,jenkinsBucket
,jenkinsHostnames
andjenkinsExcludedJobs
. You will need to update the value for these thru the InfluxDB UISettings
>Variables
after you've installed this dashboard template - Bucket handled by variable
jenkinsBucket
- Label
Jenkins
applied to all resources Job Duration Check
a threshold alertNode Health
a deadman alert based on themem_total
General instructions on using InfluxDB Templates can be found in the use a template document.
In order to collect information from your jenkins server, you will need:
url
of your Jenkins instanceusername
the username for your Jenkinspassword
the password for your user
No configuration is necessary to gather Jenkins data other than having valid credentials.
The data for the dashboard is populated by the included Telegraf Jenkins configuration. The Configuration requires the following environment variables
INFLUX_TOKEN
- The token with the permissions to read Telegraf configs and write data to thetelegraf
bucket. You can just use your operator token to get started.INFLUX_ORG
- The name of your Organization (this will be your email address on the InfluxDB Cloud free tier)INFLUX_HOST
- The URL of your InfluxDB host (this can your localhost, a remote instance, or InfluxDB Cloud)JENKINS_HOST
- The URL where your Jenkins is locatedJENKINS_USERNAME
- The username to useJENKINS_PASSWORD
- The password for your usernameJENKINS_BUCKET
- the bucket to store your data
You MUST set these environment variables before running Telegraf using something similar to the following commands
- This can be found on the
Load Data
>Tokens
page in your browser:export INFLUX_TOKEN=TOKEN
- Your Organization name can be found on the Settings page in your browser:
export INFLUX_ORG=my_org
Be sure to update the values for these variables: jenkinsBucket
, jenkinsExcludedJobs
.
These variables are populated dynamically: jenkinsHostnames
, jenkinJobNames
- Author: Ray Farias
- Email: [email protected]
- Github: @sgnl
- Influx Slack: @Ray Farias
- Contributor: Ales Pour
- Email: [email protected]
- Github: @alespour
- Influx Slack: @Ales Pour