Rename series (or frames) to "edges" and "nodes" so they can be used in Node Graph

I am trying to create a Node Graph from data that is collected by Loki and Prometheus. I have the queries that return the data that I want, and they are in the correct table format after applying some transformation. I end up with two separate series or frames (newbie here) that are named by the comma separate list of their fields - for example “id, source, target, mainstat, color”.

Node Graph does generate a nice graphic (thank you) but it doesn’t seem to recognize many of the fields, such as “mainstat”. It does recognize “color”. Now I have figured out that I need to name the data series (or frames) exactly as “edges” and “nodes”. But after some days of struggle I have not been able to figure out how to do that.

How can I set the name of a series that is the output of a transformation in a dashboard so that Node Graph will understand what it is?

Grafana 12.02 CE docker container on Ubuntu 24.04LTS

Much information points me to a transformation “Rename by Regex”, which doesn’t exist on my instance. Only “Rename fields by Regex”.

Name your queries properly:

and expect more problems:

1 Like

I am confused. I have all my data in the right format using transformations - both data from Loki and data from Prometheus. However there seems to be no way to tell Node Graph to use that data, the output of the transformations. That seems to go against the idea of Dashboards and Transformations, and limits the functionality of the Node Graph.

Is there perhaps a fork of Node Graph that does work with transformed data?