How to send alert when the queue is building up
AnsweredCurrently we are facing issue with Jenkins slaves sometimes slave goes offline and will not available for the next builds, so the queue builds up continuously.
Could you please help me if there is any plugin or script that we can use or write to alert us when the queue is building up.
-
Official comment
Hello Deals,
In CloudBees Core, you can simply create an Alert with the CloudBees Monitoring plugin based on the metric
jenkins.queue.size.value
.In Jenkins itself, you could use the Metrics API of the Metrics Plugin, same metric
jenkins.queue.size.value
and create a task that periodically check on the queue size.Regards,
-
Hi. It appears that you have a Support ticket open for this as well for which the response was the following. I hope this helps. If you can follow up with that support ticket it would be appreciated. Thanks!
-------------
I understand you are experiencing issues with Jenkins Agents disconnecting, which leads to the queue building up. Depending on whether you are using JNLP or SSH, the following articles will be incredibly useful to you in diagnosing this issue:
https://support.cloudbees.com/hc/en-us/articles/115001369667-dedicated-SSH-agents-formerly-slaves-get-disconnected
https://support.cloudbees.com/hc/en-us/articles/115001416548-dedicated-JNLP-agents-formerly-slaves-get-disconnectedCould you please provide us with a Support Bundle to get more acquainted with your system so we can provide the most relevant guidance? You can refer to this document if you need any help: What is a support-bundle and how to create one.
If your archive is larger than 20Mb please use this service to send it to us. This service works best in Chrome or Firefox.
0
Please sign in to leave a comment.
Comments
2 comments