Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1846375

Summary: [RFE] Include a link to grafana on front page
Product: [oVirt] ovirt-engine Reporter: Yedidyah Bar David <didi>
Component: Frontend.CoreAssignee: Sharon Gratch <sgratch>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Novotny <pnovotny>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.4.1CC: bugs, sgratch
Target Milestone: ovirt-4.4.1Keywords: FutureFeature
Target Release: 4.4.1.7Flags: pm-rhel: ovirt-4.4?
pm-rhel: planning_ack?
pm-rhel: devel_ack+
lleistne: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.1.7 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1854563 (view as bug list) Environment:
Last Closed: 2020-07-08 08:25:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: UX RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1854563    

Description Yedidyah Bar David 2020-06-11 13:11:16 UTC
Description of problem:

We now support setting up grafana against DWH's database.

In bug 1845049 we make a link to this grafana instance available to the engine in its conf, as item "ENGINE_GRAFANA_BASE_URL".

It would be nice for the engine to show on the front page a link there, if the item exists and is not empty.

"Workaround": This is also shown by engine-setup when it finishes, if grafana is configured, e.g.:

          Web access for grafana is enabled at:
              https://some.domain/ovirt-engine-grafana/

Comment 1 Sharon Gratch 2020-07-01 17:55:01 UTC
The new "Monitoring Portal" entry is added to the landing page with a link to the Grafana URL.
both u/s and d/s branding are supported.

In case the engine conf file 10-setup-grafana-access.conf or properties are
invalid/missing, this new link will not be displayed on the landing page.

In case the user wants to overwrite the Grafana link, he can manually
set a value for the "portal_monitoring_url" message in external_resources.properties branding file.

If 10-setup-grafana-access.conf is created after engine is
running, refreshing the browser will read the file and add the new link to the landing page,
 so no restart is needed on engine side.

Comment 2 Sharon Gratch 2020-07-02 12:26:48 UTC
(In reply to Sharon Gratch from comment #1)
> 
> If 10-setup-grafana-access.conf is created after engine is
> running, refreshing the browser will read the file and add the new link to
> the landing page,
>  so no restart is needed on engine side.
This is no longer true. The branding won't read new conf file till engine restart. Added a comment on the relevant bug: https://bugzilla.redhat.com/show_bug.cgi?id=1846294#c3

Comment 3 Pavel Novotny 2020-07-07 16:53:08 UTC
VERIFIED in
ovirt-engine-4.4.1.7-0.3.el8ev

New link "Monitoring Portal" is present only on the welcome page" (oVirt upstream only*):

The link URL is defined either as value of ENGINE_GRAFANA_BASE_URL variable in config file /etc/ovirt-engine/engine.conf.d/10-setup-grafana-access.conf (engine restart needed)
or
can be overridden as "obrand.common.portal_monitoring_url" variable in /etc/ovirt-engine/branding/00-ovirt.brand/external_resources.properties branding file (only page reload needed).


(*) The portal link is not present on the downstream RHV welcome page (rhvm-branding-rhv-4.4.3-1.el8ev), the HTML part is missing in the welcome_page.template file.
    Cloning to downstream.

Comment 4 Sandro Bonazzola 2020-07-08 08:25:57 UTC
This bugzilla is included in oVirt 4.4.1 release, published on July 8th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.1 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.