From bbff025b00a62d9292c939ecaf98d9d7464ffecf Mon Sep 17 00:00:00 2001 From: Avan Thakkar Date: Tue, 22 Jun 2021 17:16:45 +0530 Subject: [PATCH] mgr/dashboard: Alertmanager fails to POST alerts Fixes: https://tracker.ceph.com/issues/51312 Signed-off-by: Avan Thakkar --- src/pybind/mgr/dashboard/controllers/prometheus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/controllers/prometheus.py b/src/pybind/mgr/dashboard/controllers/prometheus.py index 05b4ffc5235..21bd151682b 100644 --- a/src/pybind/mgr/dashboard/controllers/prometheus.py +++ b/src/pybind/mgr/dashboard/controllers/prometheus.py @@ -18,7 +18,7 @@ class PrometheusReceiver(BaseController): """ notifications = [] - @Endpoint('POST', path='/') + @Endpoint('POST', path='/', version=None) def fetch_alert(self, **notification): notification['notified'] = datetime.now().isoformat() notification['id'] = str(len(self.notifications))