Jenkins Monitoring with JavaMelody


Jenkins is an open source Continuous Integration Server that is one of the most popular in industry. Recently in April 2016, Jenkins 2.0 with focus on Continuous Delivery has been released and that is one of the major step for open source CI server and its future.

Considering the end to end aspects of DevOps culture, Authentication and Authorization, and Monitoring in Jenkins are extremely important as Security, Governance, and Monitoring completes the End to End perspective of Application Lifecycle Management.

Monitoring plugin provides monitoring of Jenkins with JavaMelody. It provides Charts of cpu, memory, system load average, http response time etc. It also provides details of Http sessions, Errors and logs, Actions for GC, heap dump and invalidate session(s), etc. Install Monitoring plugin from Jenkins Dashboard.

To install the plugin go to Manage Jenkins and click on Manage Plugins. Go to Available tab and find Monitoring or Java Melody. Select and click on Install without Restart.

2016-11-02-13_45_08

Wait till the plugin is downloaded completely. Make sure to do Proxy settings if you are behind the firewall.

2016-11-02-13_46_16-update-center-jenkins

Once plugin is installed successfully, go to Manage Jenkins page.

2016-11-02-13_49_33-update-center-jenkins

On Jenkins dashboard, click on Manage Jenkins.

Manage Jenkins 2

Click on Monitoring of Jenkins master as shown in below figure. It will open a statistics of JavaMelody monitoring as shown in below figure. Observe all statistics. It will show different stats for Used Memory, Active Threds, CPU, Http Sessions, % of Http Errors and so on.

2016-11-02-14_29_09-monitoring-javamelody-on-_unknown

Click on Other Charts to get more details on Garbage collection, Thread counts, Swap Space, Heap Memory, Physical Memory, disk space and so on.

2016-11-02-14_29_34-monitoring-javamelody-on-_unknown

To get more information, click on Details link of any section. Statistics of http are as shown in below figure. Scroll down the page and we will find Statistics system errors logs.

2016-11-02-14_30_14-monitoring-javamelody-on-_unknown

In the bottom section of page, we get details on System information as well as Threads as shown in below figure.

2016-11-02-14_30_39-monitoring-javamelody-on-_unknown

Jenkins can be installed in Master Slave (Old terminology before Jenkins 2.0) or Master Agent Architecture. We can monitoring Master as well as Agent or slave nodes too via Monitoring Plugin that uses JavaMelody.

2016-11-02-14_31_03-mozilla-firefox-centos-64-bit-n-devops

Explore more at https://wiki.jenkins-ci.org/display/JENKINS/Monitoring to get more details on Monitoring plug-in.
Managing Disk usage

To learn more about Jenkins Click Here.

Disk Usage Plug-in records disk usage. Install Disk Usage plug-in from Jenkins Dashboard.

Once plug-in is successfully installed, we will get Disk Usage link on Manage Jenkins page as shown in below figure.

Jenkins Disk Usage Plug-in

Disk Usage plug-in will show project wise details for all jobs and all workspace. It will also display Disk Usage trend.

To get more details on Disk usage plug-in visit https://wiki.jenkins-ci.org/display/JENKINS/Disk+Usage+Plugin.

For more details get the DevOps for Web Development book.

DevOps for Web Devlopment

It is also available at:

Leave a comment

Your email address will not be published. Required fields are marked *