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

Feature request: Attribute Description as Display Name

Open phinduz opened this issue 1 year ago • 2 comments

As a user I have attribute names which are not human readable, unless you are very familiar with the data. However the attribute description is human readable and users would greatly benefit from having the option to choose this as Display Name. Would this be possible to implement?

Here is how the query currently looks like: image

... and here with a proposed addition of the option to use the Attribute Description as Display Name: image

phinduz avatar Sep 11 '24 11:09 phinduz

I would also highly appreciate this feature!

anders-hauglid avatar Sep 19 '24 07:09 anders-hauglid

The description will be added to the new data format as a label

coderReview avatar Sep 19 '24 17:09 coderReview

Thanks for picking up the feature request so fast @coderReview However, after testing 5.1.0 and looking into the code, the change hasn't been added to the GUI. Would it be possible to add it as I suggested?

phinduz avatar Nov 14 '24 12:11 phinduz

Have you enabled the new data format in the datasource settings?

pvmagacho-nde avatar Nov 14 '24 15:11 pvmagacho-nde

You can use in the panel "Display" property using the variable ${__field.lables.description}

pvmagacho-nde avatar Nov 14 '24 15:11 pvmagacho-nde

Thanks, now it works exactly as intended! 💯 Edit: There was a slight misspelling, the variable is ${__field.labels.description}

phinduz avatar Nov 15 '24 09:11 phinduz