]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Alertmanager fails to POST alerts 41987/head
authorAvan Thakkar <athakkar@localhost.localdomain>
Tue, 22 Jun 2021 11:46:45 +0000 (17:16 +0530)
committerAvan Thakkar <athakkar@redhat.com>
Wed, 23 Jun 2021 11:15:07 +0000 (16:45 +0530)
Fixes: https://tracker.ceph.com/issues/51312
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit bbff025b00a62d9292c939ecaf98d9d7464ffecf)

src/pybind/mgr/dashboard/controllers/prometheus.py

index 09aa42663179bddda4a1a7e1ed4d178b1ee60d0e..a06778f9a595a2ab0c9ce8546b5299d00d43c31a 100644 (file)
@@ -19,7 +19,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))