Fix prometheus null issues

pull/2595/head
Louis Lam 1 year ago
parent e9475ed3c0
commit 2fa233ae7f

@ -755,7 +755,7 @@ class Monitor extends BeanModel {
await R.store(bean);
log.debug("monitor", `[${this.name}] prometheus.update`);
this.prometheus.update(bean, tlsInfo);
this.prometheus?.update(bean, tlsInfo);
previousBeat = bean;
@ -840,7 +840,7 @@ class Monitor extends BeanModel {
clearTimeout(this.heartbeatInterval);
this.isStop = true;
this.prometheus.remove();
this.prometheus?.remove();
}
/**

Loading…
Cancel
Save