mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 02:30:14 +08:00
Fix: Remove Prom. metrics on delete monitor
This commit is contained in:
@@ -468,6 +468,11 @@ class Monitor extends BeanModel {
|
||||
this.isStop = true;
|
||||
}
|
||||
|
||||
onDelete() {
|
||||
let prometheus = new Prometheus(this);
|
||||
prometheus.remove();
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper Method:
|
||||
* returns URL object for further usage
|
||||
|
Reference in New Issue
Block a user