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 #686

Closed sstafford closed 1 month ago

sstafford commented 1 month ago

What feature do you want to see added?

I would like to monitor the QuietDown status of the Jenkins server. This will allow me to alert on cases where Jenkins is unintentionally left in quiet mode after automated maintenance is completed.

The Jenkins.isQuietingDown method can be used to determine the status:

Upstream changes

No response

Are you interested in contributing this feature?

Yes, I will submit a pull request.

sstafford commented 1 month ago

I have submitted a pull request to address this issue. There is a unit test for the code, and I also built the hpi file and deployed it to a Jenkins instance to confirm that the metric was available in the /prometheus endpoint and that the value changed when I enabled and disabled quiet mode in the Jenkins UI.

Waschndolos commented 1 month ago

merged with https://github.com/jenkinsci/prometheus-plugin/pull/687