]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: start using alertmanager v2 57054/head
authorNizamudeen A <nia@redhat.com>
Tue, 26 Sep 2023 16:08:51 +0000 (21:38 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 23 Apr 2024 13:34:02 +0000 (19:04 +0530)
commit969bae7f485427b7ffc030967a252123f9f1967a
treec2c68015ede2863f5c17a87cebb312792df6ea2a
parentc66b8bf2efd3f3988ac1851474c2f98eb2ca30d9
mgr/dashboard: start using alertmanager v2

I was looking into sorting the alerts and saw there is an api v2 for
alertmanager which also has an endpoint like `alerts/groups` which might
be something that is useful for us.

Refer: https://github.com/prometheus/alertmanager/blob/main/api/v2/openapi.yaml

Fixes: https://tracker.ceph.com/issues/65070
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 6f2d0b14e52885d97fdb48c2e5d7d71201494a8f)

 Conflicts:
src/pybind/mgr/dashboard/controllers/prometheus.py
  - don't add the endpoint apart from the get_alertgroup one
src/pybind/mgr/dashboard/controllers/prometheus.py
src/pybind/mgr/dashboard/openapi.yaml
src/pybind/mgr/dashboard/tests/test_prometheus.py