diff --git a/server/prometheus.js b/server/prometheus.js index adc1872e0..e30b86fdd 100644 --- a/server/prometheus.js +++ b/server/prometheus.js @@ -245,8 +245,10 @@ class Prometheus { try { monitorCertDaysRemaining.remove(this.monitorLabelValues); monitorCertIsValid.remove(this.monitorLabelValues); - monitorUptimeRatio.remove(this.monitorLabelValues); - monitorAverageResponseTimeSeconds.remove(this.monitorLabelValues); + ["1d", "30d", "365d"].forEach((window) => { + monitorUptimeRatio.remove({ ...this.monitorLabelValues, window }); + monitorAverageResponseTimeSeconds.remove({ ...this.monitorLabelValues, window }); + }); monitorResponseTime.remove(this.monitorLabelValues); monitorStatus.remove(this.monitorLabelValues); } catch (e) {