This InfluxDB Template can be used to montior a Jenkins instance
Jenkins - High-Resolution
Dashboard (see screenshot above)Jenkins - Single Job
DashboardJenkins
Telegraf configuration- Variables for
jenkinJobNames
,jenkinsBucket
, andjenkinsHostnames
. 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 master 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: jenkinJobNames
, jenkinsBucket
, and jenkinsHostnames
- Author: Ray Farias
- Email: ray@sudokrew.com
- Github: @sgnl
- Influx Slack: @Ray Farias