]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix prometheus api error on landing page v3
authorNizamudeen A <nia@redhat.com>
Wed, 22 Feb 2023 07:33:34 +0000 (13:03 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 28 Feb 2023 08:19:47 +0000 (13:49 +0530)
commit2d80e57dd4a60cbf52074d982ba3ebd4471a14ca
tree2c894dcbf784f23113a6d6ba3cdb048774f4e8aa
parentc192eee0d8ac66fa8fd5ca6ac828c913aacf6ce8
mgr/dashboard: fix prometheus api error on landing page v3

When no prometheus is configured in the cluster, it gives out error
while polling to the prometheus endpoint. so a proper check needs to be
added there.

Also some improvements to the exisiting behaviour

Fixes: https://tracker.ceph.com/issues/58867
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-list-helper.ts [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-list/silence-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/new-dashboard/dashboard/dashboard.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/helpers/helpers.module.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/helpers/prometheus-list-helper.ts [new file with mode: 0644]