From 02af171ec9ba68edd739994c65f375b01d9b85ca Mon Sep 17 00:00:00 2001 From: John W Higgins Date: Wed, 3 Jan 2024 13:03:34 -0800 Subject: [PATCH] Fix #2946 - allow push monitors to update prometheus --- server/model/monitor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/model/monitor.js b/server/model/monitor.js index b2fed86f..0a43410b 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -645,6 +645,10 @@ class Monitor extends BeanModel { retries = 0; log.debug("monitor", `[${this.name}] timeout = ${timeout}`); this.heartbeatInterval = setTimeout(safeBeat, timeout); + + bean.status = UP; + this.prometheus?.update(bean, tlsInfo); + return; } } else {