Hi! I do not understand what is the returned value of “FieldNamePicker.” My confusion is detailed in this Github Discussion. Sometimes, it tends to return the frame name and other times the field name. I am now discovering that in my configuration (using a Prometheus database,) FieldNamePicker is returning the value from field.config.displayNameFromDS
!
In this image, you can see I labeled my metric “rh”, which is shown in the FieldNamePicker. To my surprise, field.name = "Value"
but field.config.displayNameFromDS = "rh"
! So far, I’ve been using field.name
to filter out my series, but I guess now I need to check both field.name
and field.config.displayNameFromDS
. Is there a best practice for this?