Monitoring Jenkins jobs?

400 views
Skip to first unread message

David Erickson

unread,
Jun 8, 2014, 4:41:52 PM6/8/14
to javam...@googlegroups.com
Hi all-
I found the Java Melody plugin for monitoring Jenkins itself today, but am wondering if anyone has used it to monitor jobs launched by Jenkins?  IE I think there could be a lot of value to monitoring and recording stats during execution of a job, then being able to inspect its behavior after the fact.

Thanks,
David

Vernat Emeric

unread,
Jun 9, 2014, 9:27:28 AM6/9/14
to javam...@googlegroups.com
Hi David,

If you speak about number of running builds, build queue length, statistics of build durations per job, then that's already there in http://yourhost/monitoring/nodes
Or do you speak about durations per build steps, for example in ant or maven? And then what code would do it?

https://wiki.jenkins-ci.org/display/JENKINS/Monitoring
https://github.com/jenkinsci/monitoring-plugin

bye,
Emeric
--

---
You received this message because you are subscribed to the Google Groups "javamelody" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javamelody+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vernat Emeric

unread,
Jun 9, 2014, 1:48:18 PM6/9/14
to javam...@googlegroups.com
Hi again,

I forgot one thing: before ant/maven steps, a first and easier enhancement would be to add statistics of the job build steps.

And the following extension point can probably help now (since Jenkins v1.502):
http://javadoc.jenkins-ci.org/hudson/model/BuildStepListener.html

In the statistics, the name of the build steps should probably include the name of the job + Descriptor.getDisplayName() or class.getSimpleName() + depending on the case, ant targets, maven targets or shell command.
Is someone wanting to try that?

To add a build step in the statistics, see the following (on a Jenkins master):
https://github.com/jenkinsci/monitoring-plugin/blob/master/src/main/java/net/bull/javamelody/CounterRunListener.java

Emeric

David Erickson

unread,
Jun 12, 2014, 3:33:08 AM6/12/14
to javam...@googlegroups.com
Hi Emeric-
No I was thinking more of actually monitoring the execution of the job itself, which in our case would be continuous integration tests launched by Maven.  Monitoring those and being able to analyze what happened after the fact would be useful.

Thanks,
David
Reply all
Reply to author
Forward
0 new messages