I am trying to get metrics for each individual job on Jenkins (I have 100 plus jobs).
Using InfluxDB i am able to get a lot of metrics (eg: build number, build status message last successful build, project name etc.) for every build in each job.
I am trying to get similar metrics using Graphite on Jenkins but I could not find a way to do this.
Plugins used on Jenkins:
https://wiki.jenkins.io/display/JENKINS/Metrics+Graphite+Plugin
Any help is appreciated, thank you :)
TL;DR: It could be done, but appears it would require work that nobody has taken-on that I can find, and appears that generally that feature of graphite should not be used excessively because graphite doesn't appear to store it efficiently (although Jenkins usage seems like a very reasonable usage of it)
The code for the graphite plugin is pretty simple:
Apparently graphite does support metadata as of version 0.9.9 (apparently 10/6/11)(I didn't fully realize that): https://graphite.readthedocs.io/en/latest/events.html
But those docs seem to imply its separate from the actual logged metrics, so looks like the plugin would need to make two requests to add that metadata. One could add that into the plugin, but it would likely significantly slow down any log statement using that feature.
Also the library it is using doesn't seem to support this metadata as far as I can tell, so adding that functionality would likely need to be done from scratch.
Tags is another feature of graphite that seems to be quite rarely actually implemented in libaries/plugins, but that could be explored as well