grafana-zabbix
grafana-zabbix copied to clipboard
Not working with public dashboards
Describe the bug The Zabbix plugin is failing on public dashboards because the queries are not using the Public dashboards endpoint
Expected behavior The Zabbix plugin does not extend DataSourceWithBackend and it is making a request directly to the Grafana Backend. Public dashboards override this query and use another endpoint, so each backend plugin needs to extend this class.
Hello everyone, I ran into the same problem. Does anyone have any ideas how to solve it?
Same issue here. We were really hoping for this functionality, as we are constructing a public dashboard using aggregated Zabbix services to inform the University user community about the status of various IT services.
@zoltanbedi we are also facing the same issue, any update on this? Thanks
I have been facing same problem since last 3-4 weeks. But after debugging i found that we are not passing publicDashboardAccessToken in the request query object in backendQuery function.
@zoltanbedi
~Public dashboard feature should still work despite the warning. Are you seeing that not working?~
Sorry I saw it working because auth_anonymus_enabled. 😅 I can see what @evictorero says now. We need to investigate this more as there are a couple of places where we still use frontend queries.
Is there any workaround for this at the moment?
@kingcode94 nothing that I'm aware of.
@zoltanbedi I think the issue is within grafana. Because grafana is handling the session of users.
Can you please verify that?
I have tried to hit the following url from postman and i was getting unauthorized error
http://localhost:3001/api/ds/query
Also can you please share where to add ** auth_anonymus_enabled** flag in the code so that atleast we can get a temporary public dashboard.
Thank you. 😇
Hi @zoltanbedi Well we have issue in Grafana Cloud where we are not getting data in public dashboard but when a user logged-in then we are getting Data.
Any solution on this?
Thank you!
@sulaiman21 this is still not supported for zabbix and sadly you can't set auth_anonymus_enabled
in cloud.
Is there any workaround for this? I don't want the general public to be able to make changes to dashboards, so I need auth for making changes, but there are a few dashboards that I need to be public.
@sulaiman21 this is still not supported for zabbix and sadly you can't set
auth_anonymus_enabled
in cloud.
This worked for me in the docker version by setting it in grafana.ini - but it seems that special considerations are required for view permissions to prevent undesired data leaks
This is still not working. Here is a link that describes how to make the data source compatible: https://grafana.com/docs/grafana/latest/dashboards/dashboard-public/#supported-data-sources
This is still not working. Here is a link that describes how to make the data source compatible: https://grafana.com/docs/grafana/latest/dashboards/dashboard-public/#supported-data-sources
grafana-zabbix seems to have both properties set to true in plugin.json, so the problem is likely not that.
I have noticed that public dashboards do work on some dashboards, but I have yet to find what specifically makes some of them not work.
+1