From 5e6f343e830c78b2f8acc79191c37b81c42b4a6e Mon Sep 17 00:00:00 2001 From: Inex Code Date: Fri, 26 Jul 2024 18:56:17 +0300 Subject: [PATCH] fix: Forbid backups for prometheus --- selfprivacy_api/services/prometheus/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selfprivacy_api/services/prometheus/__init__.py b/selfprivacy_api/services/prometheus/__init__.py index 71dcb0b..29a419e 100644 --- a/selfprivacy_api/services/prometheus/__init__.py +++ b/selfprivacy_api/services/prometheus/__init__.py @@ -47,6 +47,10 @@ class Prometheus(Service): def is_required() -> bool: return True + @staticmethod + def can_be_backed_up() -> bool: + return False + @staticmethod def get_backup_description() -> str: return "Backups are not available for Prometheus."