Grafana dashboard box links are no longer valid in Grafana 8.4

Description

This issue is separate from, but closely related to, NMS-14109.

Steps to reproduce:

  1. Configure the Grafana box properties and switch on rendering of the box (see docs)

  2. Create at least one dashboard in your connected Grafana instance

  3. Restart OpenNMS and load the landing page

Expected result: Links from Grafana box take you to the dashboards named in the link text

Actual result: Links from Grafana box take you to a "dashboard not found" page in Grafana

 

I've poked around behind the curtain and think I've isolated the cause. When we build the links in the Grafana box, we assume that appending the uri property obtained for the dashboard in question on the end of the concatenation of the configured grafanaProtocol, grafanaHostname, grafanaPort, grafanaBasePath, and the constant "/dashboard/" will yield a valid URL. Evidently this used to work but broke somewhere along the way.

My poking also indicates that using the url property, concatenated with the protocol, host, and port, should make a valid URL.

Environment

Grafana 8.4.3

Acceptance / Success Criteria

None

Linked issue cannot finish until this issue finishes.

Lucidchart Diagrams

Activity

Show:

Alberto April 27, 2022 at 9:49 PM

Merged to develop

Done

Details

Assignee

Reporter

HB Grooming Date

HB Backlog Status

Docs Needed

No

Story Points

Original estimate

Time tracking

No time logged2d 2h remaining

Components

Sprint

Fix versions

Affects versions

Priority

PagerDuty

Created April 14, 2022 at 5:51 PM
Updated May 10, 2022 at 5:34 PM
Resolved April 27, 2022 at 9:49 PM