mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 22:21:03 +08:00
Fix: Clear metrics also on stop and edit
This commit is contained in:
@@ -567,6 +567,11 @@ exports.entryPage = "dashboard";
|
||||
throw new Error("Permission denied.");
|
||||
}
|
||||
|
||||
// Reset Prometheus labels
|
||||
if (monitorList[monitor.id] && monitorList[monitor.id].prometheus) {
|
||||
monitorList[monitor.id].prometheus().remove();
|
||||
}
|
||||
|
||||
bean.name = monitor.name;
|
||||
bean.type = monitor.type;
|
||||
bean.url = monitor.url;
|
||||
|
Reference in New Issue
Block a user