Merge pull request #2664 from spali/keep_prometheus_instance

remember prometheus instance and expose it
This commit is contained in:
Louis Lam
2023-02-23 20:43:05 +08:00
committed by GitHub
2 changed files with 7 additions and 10 deletions

View File

@@ -677,9 +677,6 @@ let needSetup = false;
throw new Error("Permission denied.");
}
// Reset Prometheus labels
server.monitorList[monitor.id]?.prometheus()?.remove();
bean.name = monitor.name;
bean.type = monitor.type;
bean.url = monitor.url;