Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting "unexpected error happened" after using $__user.login variables in mysql query #252

Open
manjunath4038 opened this issue Sep 19, 2020 · 2 comments

Comments

@manjunath4038
Copy link

Hi Team,

I wrote a following query in mysql and see that the pie chart panel is crashing. it worked well without "${__user.login}".
SELECT now() as time, count(*) cnt, base.Class metric
FROM base
LEFT JOIN owner ON base.serial_No = owner.serial_No
where owner.current_owner_email = '${__user.login}' AND base.Class in ($Category)
group by base.Class
order by cnt desc

I changed the visualization to " Bar Gauge" and didn't
Screenshot (86)

see the issue.

Please help to resolve this issue. I have latest version of Grafana and Pie chart panel
attaching the screen shot for the same.

@mikebdp2
Copy link

@manjunath4038 I noticed it crashes when there are too many of pie slices (>~10). Temporary solution: don't display the pie slices smaller than a certain size, or unite them to "Others".

@BGraco
Copy link

BGraco commented Oct 26, 2020

I am running Grafana 7.2.2 with version 1.6.1 of the pie chart plugin and am having the exact same issue. My chart only has 4 slices, so I don't think the work around above helps for me.

Example result:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants