-
Notifications
You must be signed in to change notification settings - Fork 47
Emit counter for completed jobs #33
Comments
Thanks for the ticket @jshirley :) I'll add this to the list for the next release |
@JohnLZeller I'm going to have a stab at this one. I looked through the API docs, there isn't a mention of what values 'type' can take ? In the plugin you create a 'gauge' type metric. Is there a difference between the 'gauge' type and the 'count' type?
So...is the way to simply emit a similar metric with the 'jenkins.job.completed' and simply just assign it the value '1' so that graphs can summarize? |
@JohnLZeller how would you prefer i deliver this one. My change requires the features from #38. Would you be ok with a new pull request that bases itself off the new feature i added? I could also just create a new commit on the existing pull request, it would mean that the pull request attempts to implement 2 features...i Guess that's ok? We can always fixup the history of the changes in my fork before they're merged into the official repository. |
Okay @JohnLZeller I've added my initial suggestion here: No pull request yet...i did a bit of refactoring in this commit: https://github.com/Praqma/jenkins-datadog-plugin/commit/f3bb89655e1ed72ef4288fde46e44d46f22b2128 I've created a small object for a metric emission..i hope i understood how Datadog works. Pretty nice to play around with the UI atleast. Very easy to setup a simple dashboard, With this commit i can do it like this: A counter that counts failed jobs and a counter that counts sucessful jobs. |
Hey @MadsNielsen! Go ahead and open a PR. I'm gonna merge the stuff from #38 after your next commits. |
Added with #43 |
Fine with me😀 |
We would like to graph failed jobs, grouped by job, on our Jenkins dashboards. It doesn't look like it's possible to add the count of each event on a dashboard, and looking at other plugins using a
count
metric is the typical method for doing this.With a
jenkins.job.completed
counter, we can usesum
and filter accordingly and then add the graph as expected.We use the service checks for monitors, which are working fine, but we can't add that graph to a dashboard.
The text was updated successfully, but these errors were encountered: