Target alias for datasource plugin

Writing a datasource plugin, going sort of well so far but stuck on how change how a target is shown in a graph. When selecting the metric I can display a textual version of the target to the user, in this case the device name.

But the underlying target is being displayed in raw form on the graph, so I’m wondering where in datasource.query or elsewhere I can return information to display a more user friendly name.

Ie trying to replace6b15b51e-7361-4ca2-af59-6583bbf2e9cf@966c8732-57d1-47f1-bb19-2cbccbfcaf3d with something more user friendly.

You can override a “target”-property in “datasource.js/query”-method.