From: Avan Thakkar Date: Tue, 22 Jun 2021 11:46:45 +0000 (+0530) Subject: mgr/dashboard: Alertmanager fails to POST alerts X-Git-Tag: v17.1.0~1578^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=bbff025b00a62d9292c939ecaf98d9d7464ffecf;p=ceph-ci.git mgr/dashboard: Alertmanager fails to POST alerts Fixes: https://tracker.ceph.com/issues/51312 Signed-off-by: Avan Thakkar --- 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))