Merge pull request #1136 from chakflying/fix/prometheus-on-delete

Fix: Remove prometheus metrics on delete [Test needed]
This commit is contained in:
Louis Lam
2022-03-27 11:05:50 +08:00
committed by GitHub
3 changed files with 19 additions and 0 deletions

View File

@@ -477,6 +477,12 @@ class Monitor extends BeanModel {
stop() {
clearTimeout(this.heartbeatInterval);
this.isStop = true;
this.prometheus().remove();
}
prometheus() {
return new Prometheus(this);
}
/**