fix: removal of uptime ratio and avg. response time from prometheus metrics (#6915)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Manu
2026-03-06 12:51:09 +01:00
committed by GitHub
parent b00f721529
commit 165c5c1134

View File

@@ -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) {