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

Not working with public dashboards #1635

Open
evictorero opened this issue May 18, 2023 · 14 comments
Open

Not working with public dashboards #1635

evictorero opened this issue May 18, 2023 · 14 comments

Comments

@evictorero
Copy link

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.

@DenisK32
Copy link

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

@reiverjohn
Copy link

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.

@atifzia
Copy link

atifzia commented Dec 4, 2023

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

@sulaiman21
Copy link

sulaiman21 commented Dec 4, 2023

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

@zoltanbedi
Copy link
Member

zoltanbedi commented Dec 5, 2023

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.

@kingcode94
Copy link

Is there any workaround for this at the moment?

@zoltanbedi
Copy link
Member

@kingcode94 nothing that I'm aware of.

@sulaiman21
Copy link

sulaiman21 commented Jan 4, 2024

@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
Copy link

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!

@zoltanbedi
Copy link
Member

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

@JackPala
Copy link

JackPala commented Feb 1, 2024

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
Copy link

JackPala commented Feb 1, 2024

@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

@Warrior-Elite
Copy link

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

@kardoka
Copy link

kardoka commented Apr 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

10 participants