osisoftpi-grafana icon indicating copy to clipboard operation
osisoftpi-grafana copied to clipboard

elementPath not filled in with Raw Query

Open alexl04 opened this issue 1 year ago • 3 comments

Grafana 10 Latest Grafana OSI Soft PI plugin version Latest PI API

image

alexl04 avatar Feb 28 '24 08:02 alexl04

Can you give more details on how you use the API?

coderReview avatar Mar 06 '24 00:03 coderReview

Can you give more details on how you use the API?

The elementPath is missing in the dashboard JSON Model if you add another panel with data from PI via the AF Raw Query Mode. See below example. image image

image

This is also true if you add 2 queries into the same panel. The one generated via the AF Raw Query Mode is missing the elementPath.

The missing elementPath is no problem in the grafana instance where it has been created. But it is a problem in another grafana instance where the exact same dashboard JSON model is uploaded (with help of python and the Grafana API to find dashboard etc). Note that we do change datasource uids and other critical elements in the dashboard JSON model in python to match the info needed in the other grafana instance but this does not cause the elementPath to be missing. The screenshots are from the main grafana instance where the dashboard is created and from where the JSON model is scraped for syncs to other Grafana instances.

alexl04 avatar Mar 14 '24 09:03 alexl04

Fixed in PR #150

coderReview avatar Apr 05 '24 21:04 coderReview