netsage-project / netsage-sankey-panel

Apache License 2.0
9 stars 5 forks source link

Sankey panels "p is not a function" in Grafana 10 #18

Open justin-vux opened 1 year ago

justin-vux commented 1 year ago

Hello,

My Sankey panels ceased working after upgrading to Grafana 10 (I'm using Grafana cloud, so this is somewhat out of my control).

The error I'm getting is "p is not a function". I am using plugin version 1.1.0. When I tried plugin version 1.0.6 on Grafana 10, I got "g is not a function". Everything works properly on Grafana 9.5 for both plugin versions 1.1.0 and 1.0.6.

image

The data source I am using is ElasticSearch.

Here is the table view and query:

image

image

Please let me know if I can provide any additional information that would help.

plewam commented 1 year ago

Hi, I got the same issue. Error text is "p is not a function". Grafana 10 latest plugin version. Maybe I am doing something wrong with my query behind. It may help if the documentation would provide an example query or something.

Kind regards

necits2015 commented 1 year ago

Same issue here.

gdiana commented 1 year ago

Thank you v1.1.1 sorted out the g and p not a function issues 👏😎👍

ryanhugh commented 1 year ago

Still getting this error, Sankey plugin v1.1.1 on grafana cloud:

image image

Any work arounds?

gdiana commented 1 year ago

@ryanhugh I played around and found I get the same error if I do not use the Table format. It appears one must use Table format and also define the correct text, number format for each column. Then it appears to work ok.

image

image

image

Otherwise one can or still gets the error if anything is incorrectly defined as seen below

image

ryanhugh commented 1 year ago

I switched to the Inifity Data source and that CVS you've got in that screenshot, and it started working. Thank you for the help!

image
marcolinux46 commented 9 months ago

Hi,

i installed grafana10 and latest version of plugin (1.1.1). I'm doing a panel with an elasticsearch source using a lucene query and sorting the data with 3 fields. I have the problem too.

How can i resolve the issue?

Thank you for your help

gdiana commented 9 months ago

I suggest you try the infinity source and try the example above like @ryanhugh to see if it works.

If so then try and ensure you are using the correct syntax and format returned from the lucerne query using the eslaticearch source otherwise the error will prevail. Should take you 10 min to check.

silverbullet1 commented 9 months ago
image

I am still getting p is not a function on grafana 8.5.10 after using infinity source!

kbouck commented 4 months ago

I had this same problem using inline CSV data with the Infinity data source. I resolved it following the advice above from @gdiana:

Maybe the plugin could validate the query result data and produce a more descriptive error message suggesting what is missing/wrong with the query result data.