All About the Apps
Showing results for 
Search instead for 
Do you mean 

SiteScope application monitoring capabilities covers Jenkins. Learn how!

Vishnu_priya on ‎08-31-2016 10:14 PM ‎09-02-2016 12:52 PM Julia_Dickinson

 

We all know Jenkins is a popular cross-platform, continuous integration and continuous delivery application that builds and tests software projects continuously. And that it enables continuous delivery of software with its powerful ways to define build pipelines and integrate with a large number of testing and deployment technologies. But did you know that SiteScope can monitor Jenkins too?

SiteScope monitors Jenkins too!

SiteScope can monitor the Jenkins build pipeline with its REST API Monitor. Jenkins has several REST APIs that can be passed as input to this monitor. SiteScope uses these APIs to get the job status of different jobs in Jenkins.

Using SiteScope you can choose to either:

  • Monitor individual build jobs on Jenkins
  • Monitor all build jobs on a Jenkins server

Let’s see how we can accomplish each of these tasks.

Monitor individual build jobs on Jenkins

Using SiteScope you can create as many REST API monitors to monitor as many jobs as you want. Each monitor can monitor one build job on any Jenkins server.

To monitor specific jobs, use the REST API:

http://JenkinsHost:Port/job/Job-name/lastBuild/api/json

where Job-name is the name of the build job that you want to monitor and JenkinsHost:Port is the name of the Jenkins server and the port number to be used.

 Steps to start monitoring your build jobs on Jenkins:

  1. Log on to SiteScope with your credentials.
  2. Create a new REST API monitor. See the SiteScope Monitor Reference Guide for detailed steps on how to create a monitor.
  3. Under the REST API monitor settings tab, enter the URL, Port, and Resource for the Jenkins host.
  4. Under the Authentication Settings tab, enter the credentials if your Jenkins server uses credentials.
  5. Under the Proxy Settings tab, enter the details of the proxy server if you have set up any proxy
  6. Select the counters such as result, id, duration, and any others that you want to monitor. You can see the values of these counters on the SiteScope dashboard.

1.png2.png3.png With these simple steps, you can start monitoring a build job on Jenkins and get alerts when a job fails.

Monitor all jobs on a Jenkins server

You just need only one REST API monitor in SiteScope to monitor all the jobs on a Jenkins server. Use the REST API:

http://JenkinsHost:Port /api/json

where JenkinsHost:Port is the name of the Jenkins host and the port number.

 Steps to start monitoring all build jobs running on a Jenkins server:

  1. Log on to SiteScope with your credentials.
  2. Create a new REST API monitor. See the SiteScope Monitor Reference Guide for detailed steps on how to create a monitor.
  3. Under the REST API monitor settings tab, enter the URL, Port and Resource of the Jenkins host.
  4. Under the Authentication Settings tab, enter the credentials if your Jenkins server needs credentials.
  5. Under the Proxy Settings tab, enter the details of the proxy server if you have set up any proxy server.
  6. Select the jobs and the counters associated with each job such as name, color (status), URL and any others that you want to monitor.

4.png

 

5.png

 

6.png

The counters and their values are displayed on the SiteScope dashboard. With this, you are all set to start monitoring your Jenkins server.

Explore

If you would like to learn more about HPE SiteScope, start a free trial, or see a live demo please visit our online page at: https://saas.hpe.com/en-us/software/sitescope.

To read more about some cool features of SiteScope, visit our SiteScope Blogs and Videos Archive.

About the Author

Vishnu_priya

Comments
Rosmy_Valavi
on ‎09-01-2016 02:01 AM

Very Well Done VishnuPriya!!

All details are explained with screenshots, Thank You!1

Keep up the good work!!

wboy
on ‎09-17-2016 11:28 AM

Will try this when I find a customer who is using this solution

Events
27 Feb - 2 March 2017
Barcelona | Fira Gran Via
Mobile World Congress 2017
Hewlett Packard Enterprise at Mobile World Congress 2017, Barcelona | Fira Gran Via Location: Hall 3, Booth 3E11
Read more
Each Month in 2017
Online
Software Expert Days - 2017
Join us online to talk directly with our Software experts during online Expert Days. Find information here about past, current, and upcoming Expert Da...
Read more
View all