mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-05 17:35:29 -05:00
Fix #2946 - allow push monitors to update prometheus
This commit is contained in:
parent
5ebea3134a
commit
02af171ec9
@ -645,6 +645,10 @@ class Monitor extends BeanModel {
|
|||||||
retries = 0;
|
retries = 0;
|
||||||
log.debug("monitor", `[${this.name}] timeout = ${timeout}`);
|
log.debug("monitor", `[${this.name}] timeout = ${timeout}`);
|
||||||
this.heartbeatInterval = setTimeout(safeBeat, timeout);
|
this.heartbeatInterval = setTimeout(safeBeat, timeout);
|
||||||
|
|
||||||
|
bean.status = UP;
|
||||||
|
this.prometheus?.update(bean, tlsInfo);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user