Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-49179

Add queue duration for how long stages are wait for a build node to become available

    Details

    • Similar Issues:

      Description

      We utilize multi-job projects which run downstream jobs on different nodes in parallel.

      We monitor the build queue duration of the down stream jobs to track when we need additional build nodes.  We also send the queue duration to ELK for metrics/graphs. 

      We are migrating to pipelines now and looked at the REST /wfapi interface.  There is a queueDuration for the overall job but individual stages don't track queueDuration even though they are waiting in the job queue waiting for build nodes to become available.

      Can we add a queue duration value for the stage which will track how long it waited for the node to become available?

        Attachments

          Activity

          johnlengeling John Lengeling created issue -
          Hide
          broussar Adam Brousseau added a comment -

          Also would like to see this.
          As a workaround we have added a "Queue" stage around our node block (which basically wraps the entire build). The side effect is that it breaks the Blue Ocean view by only displaying the Queue stage for the build. The classic view still shows all the stages.

          Show
          broussar Adam Brousseau added a comment - Also would like to see this. As a workaround we have added a "Queue" stage around our node block (which basically wraps the entire build). The side effect is that it breaks the Blue Ocean view by only displaying the Queue stage for the build. The classic view still shows all the stages.

            People

            • Assignee:
              svanoort Sam Van Oort
              Reporter:
              johnlengeling John Lengeling
            • Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: