mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-05-17 00:16:32 +03:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user