]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Wed, 15 Mar 2023 06:52:55 +0000 (12:22 +0530)
commit0c6ab8be77890ab73cd86970c20269f8444e6acd
tree4ebecdc2ef5a852585aeedc5ca1ebd73c1c65ead
parentcf2686a99aa2c7645251ec575f23da35e7d6ced3
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>
(cherry picked from commit 2d80e57dd4a60cbf52074d982ba3ebd4471a14ca)
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]