-
Bug
-
Resolution: Fixed
-
Minor
-
Jenkins 2.319.2
monitoring 1.90.0
java.version 1.8.0_342
The jenkins monitoring "agent" would display the following (relative url: /monitoring/nodes?period=jour):
While the server dashboard (releative url /) would display something like:
We would like to have the Build Queue size tracked by monitoring. Currently, jenkins monitoring "agents" "build queue length" does not reflect the build queue size. The dashboard is verifiably correct because the jobs on the queue are listed.
In the monitoring plugin, the NodesCollector class uses Jenkins.getInstance().getQueue().getBuildableItems().size(), including buildable and pending items. The monitoring plugin currently counts the items in queue like the Load Statistics in the /manage/load-statistics page.
While the UI probably uses Jenkins.getInstance().getQueue().getItems().length including blocked and waiting items.
The difference you see is probably the blocked items count.