grafana-zabbix icon indicating copy to clipboard operation
grafana-zabbix copied to clipboard

Not working with public dashboards

Open evictorero opened this issue 1 year ago • 14 comments

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.

evictorero avatar May 18 '23 13:05 evictorero

Hello everyone, I ran into the same problem. Does anyone have any ideas how to solve it?

DenisK32 avatar May 19 '23 08:05 DenisK32

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.

reiverjohn avatar Nov 02 '23 12:11 reiverjohn

@zoltanbedi we are also facing the same issue, any update on this? Thanks

atifzia avatar Dec 04 '23 06:12 atifzia

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.

Screenshot 2023-12-04 at 5 39 16 PM

@zoltanbedi

sulaiman21 avatar Dec 04 '23 12:12 sulaiman21

~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.

zoltanbedi avatar Dec 05 '23 15:12 zoltanbedi

Is there any workaround for this at the moment?

kingcode94 avatar Dec 11 '23 16:12 kingcode94

@kingcode94 nothing that I'm aware of.

zoltanbedi avatar Dec 11 '23 16:12 zoltanbedi

@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. 😇

sulaiman21 avatar Jan 04 '24 04:01 sulaiman21

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 avatar Jan 04 '24 08:01 sulaiman21

@sulaiman21 this is still not supported for zabbix and sadly you can't set auth_anonymus_enabled in cloud.

zoltanbedi avatar Jan 04 '24 09:01 zoltanbedi

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.

JackPala avatar Feb 01 '24 20:02 JackPala

@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

JackPala avatar Feb 01 '24 21:02 JackPala

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

Warrior-Elite avatar Mar 27 '24 18:03 Warrior-Elite

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.

kardoka avatar Apr 11 '24 08:04 kardoka