mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-21 21:14:48 -04:00
Fix: Clear metrics also on stop and edit
This commit is contained in:
parent
f6ef390c76
commit
edd2534a1b
2 changed files with 12 additions and 2 deletions
|
@ -466,11 +466,16 @@ class Monitor extends BeanModel {
|
|||
stop() {
|
||||
clearTimeout(this.heartbeatInterval);
|
||||
this.isStop = true;
|
||||
|
||||
this.prometheus().remove();
|
||||
}
|
||||
|
||||
onDelete() {
|
||||
let prometheus = new Prometheus(this);
|
||||
prometheus.remove();
|
||||
this.prometheus().remove();
|
||||
}
|
||||
|
||||
prometheus() {
|
||||
return new Prometheus(this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue