jenkinsci / prometheus-plugin

Jenkins Prometheus Plugin
https://plugins.jenkins.io/prometheus/
Apache License 2.0
181 stars 151 forks source link

Add new metric for Quiet Mode status #687

Closed sstafford closed 1 month ago

sstafford commented 1 month ago

This pull request introduces a new "default_jenkins_quietdown" metric to indicate whether Jenkins is in quiet mode. It can be used to monitor whether Jenkins is processing new jobs. It uses the Jenkins.isQuietingDown method to determine the status of the server:

This is a fix for Issue #686

Waschndolos commented 1 month ago

@sstafford - Thanks for the PR. The code looks good. Could you fix the test org.jenkinsci.plugins.prometheus.JenkinsStatusCollectorTest.shouldProduceNodeMetrics then I'll test it functionally and merge it to master. Thank you