Closed vipin5050 closed 4 months ago
Currently no Computer around, but the Plugin should already provide such Information. Looks you have a dedicated displayname in Grafana. Maybe temporary remove it from the Dashboard, then you should get the Information. If not i can take a closer Look on monday
I was looking in to metrics provided and I couldnt find Build_ID, build_number or job ID, I could be wrong if you can find that would be awesome. If not please try to include if reasonably possible.
I will check on monday, currently on vacation.
@vipin5050. Just checked it. When you use the Prometheus Plugin without any further configuration you'll only get the jenkins_job name as info. Like
default_jenkins_builds_build_duration_milliseconds{jenkins_job="test",repo="NA",buildable="true"}
However there's an option in the configuration page:
which also prints out the build number:
default_jenkins_builds_build_duration_milliseconds{jenkins_job="test",repo="NA",buildable="true",number="1",} 628.0
default_jenkins_builds_build_duration_milliseconds{jenkins_job="test",repo="NA",buildable="true",number="2",} 369.0
It will display all builds available, so if you have like 200 builds, you get 200 entries.
Thanks @Waschndolos yes you are right, I can get the job_ID. This is exactly I was looking. Thanks for quick reply. you can close this issue.
What feature do you want to see added?
I would like to have build_id, build_number or jenkins job ID to be collected by the prometheus. As I am thinking to have a metrics to do time taken by individual job ID, something like
Upstream changes
No response
Are you interested in contributing this feature?
I can test the builds or solution.