Bug 1845049

Summary: configure engine for showing link to grafana instance in ovirt landing page
Product: [oVirt] ovirt-engine-dwh Reporter: Sandro Bonazzola <sbonazzo>
Component: SetupAssignee: Yedidyah Bar David <didi>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Novotny <pnovotny>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4.0.2CC: bugs, lleistne, michal.skrivanek, pelauter
Target Milestone: ovirt-4.4.1Flags: pm-rhel: ovirt-4.4+
pelauter: planning_ack+
sbonazzo: devel_ack+
lleistne: testing_ack+
Target Release: 4.4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-dwh-4.4.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-08 08:25:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Metrics RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sandro Bonazzola 2020-06-08 11:21:31 UTC
configure engine for showing  link to grafana instance in ovirt landing page

Comment 1 Yedidyah Bar David 2020-06-08 11:56:43 UTC
I am going to write a conf file in /etc/ovirt-engine/engine.conf.d/ with:

ENGINE_GRAFANA_FQDN=somefqdn
ENGINE_GRAFANA_BASE_URL=https://${ENGINE_GRAFANA_FQDN}/ovirt-engine-grafana/

(splitting to two lines to make it easier on ovirt-engine-rename. We need a separate bug for that one, IMO).

Comment 2 Michal Skrivanek 2020-06-11 12:39:32 UTC
(In reply to Yedidyah Bar David from comment #1)
> I am going to write a conf file in /etc/ovirt-engine/engine.conf.d/ with:
> 
> ENGINE_GRAFANA_FQDN=somefqdn
> ENGINE_GRAFANA_BASE_URL=https://${ENGINE_GRAFANA_FQDN}/ovirt-engine-grafana/
> 
> (splitting to two lines to make it easier on ovirt-engine-rename. We need a
> separate bug for that one, IMO).

yes, similar to bug 1807242. Please open one or if you prefer just add a note to that one.

Comment 3 Yedidyah Bar David 2020-06-11 13:02:43 UTC
(In reply to Michal Skrivanek from comment #2)
> yes, similar to bug 1807242. Please open one or if you prefer just add a
> note to that one.

Filed bug 1846365.

Comment 4 Pavel Novotny 2020-07-07 17:01:56 UTC
VERIFIED in ovirt-engine-4.4.1.7-0.3.el8ev

Verified as part of bug 1846375 verification, see bug 1846375 comment 3.

File /etc/ovirt-engine/engine.conf.d/10-setup-grafana-access.conf contains:
-~-
ENGINE_GRAFANA_FQDN=engine.example.com
ENGINE_GRAFANA_BASE_URL=https://${ENGINE_GRAFANA_FQDN}//ovirt-engine-grafana/
-~-

Value of ENGINE_GRAFANA_BASE_URL is then URL of the "Monitoring Portal" link on the welcome page.
If the value is null or the variable is not defined, the portal link is not displayed.
Any changes to the variables require engine restart so the new values are loaded.

Comment 5 Sandro Bonazzola 2020-07-08 08:25:48 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.