# How to get the job total duration time?

**URL:** <https://community.jenkins.io/t/how-to-get-the-job-total-duration-time/3478>\
**Category:** Using Jenkins\
**Created:** [August 23, 2022, 8:14pm UTC](https://community.jenkins.io/t/how-to-get-the-job-total-duration-time/3478 "2022-08-23T20:14:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![camilo-alice](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/camilo-alice/32/2119_2.png) [@camilo-alice](https://community.jenkins.io/u/camilo-alice)\
**Post date:** [August 23, 2022, 8:14pm UTC](https://community.jenkins.io/t/how-to-get-the-job-total-duration-time/3478/1 "2022-08-23T20:14:43Z")

</div>

Hi. I have working on Grafana Dashboard to display Jenkins statistcs using Prometheus plugin.  
I noticed that Prometheus plugin provides its own metrics and metrics from Dropwizard Metrics API . The prometheus metrics starts with default\_jenkins\* and the Dropwizard Metrics API with jenkins\_\*.  
Using PromQL I can get metrics from jobs separately using jenkins\_job label, for example default\_jenkins\_builds\_duration\_milliseconds\_summary\_count, but the jenkins\_job\_total\_duration does not return the label of all jobs runned with their execution time.  
Does anybody could help to understand how can I calculate the job total duration (queue + execution) using this metrics plugins and display per job label name?
