Branch: refs/heads/master
Home: https://github.com/jenkinsci/prometheus-plugin
Commit: 7c50ad288424a6b0e0673a9484174e0417d235ff
https://github.com/jenkinsci/prometheus-plugin/commit/7c50ad288424a6b0e0673a9484174e0417d235ff
Author: Shawn Stafford <[email protected]>
Date: 2024-07-27 (Sat, 27 Jul 2024)
Changed paths:
M docs/metrics/index.md
M src/main/java/org/jenkinsci/plugins/prometheus/JenkinsStatusCollector.java
M
src/main/java/org/jenkinsci/plugins/prometheus/collectors/CollectorType.java
M
src/main/java/org/jenkinsci/plugins/prometheus/collectors/jenkins/JenkinsCollectorFactory.java
A
src/main/java/org/jenkinsci/plugins/prometheus/collectors/jenkins/JenkinsQuietDownGauge.java
M
src/test/java/org/jenkinsci/plugins/prometheus/JenkinsStatusCollectorTest.java
A
src/test/java/org/jenkinsci/plugins/prometheus/collectors/jenkins/JenkinsQuietDownGaugeTest.java
Log Message:
-----------
Add new metric for Quiet Mode status (#687)
* New metric indicating whether Jenkins is in quietdown mode
This metric exposes the Jenkins isQuietingDown status as a gauge.
When Jenkins is in quiet mode, the new metric will represent this
as a '1', otherwise the value will be '0'
Exposing this metric allows Prometheus to determine whether Jenkins
is in quiet mode. This can be useful in cases where an alert should
be triggered if quiet mode has been enabled for too long or falls
outside of a maintenance window.
Fixes issue #686
* Fixing JenkinsStatusCollectorTest unit test
The unit test checks the number of status metrics.
Adding a new metric caused this test to fail.
The number of metrics needed to be incremented to fix the test.
To unsubscribe from these emails, change your notification settings at
https://github.com/jenkinsci/prometheus-plugin/settings/notifications
--
You received this message because you are subscribed to the Google Groups
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/prometheus-plugin/push/refs/heads/master/b59179-7c50ad%40github.com.