Hello,
In Grafana 7, there is a new “Inspect” option that lets users inspect a panel, with tabs for panel data, panel JSON and panel query.
I’d like to restrict what Viewer users can see in this panel. Ideally, they should only be able to see the “Data” tab, and nothing else.
Upon testing, I’ve already noticed that the “Query” is tab doesn’t appear for viewers users, which is good. However, I would like to know if it’s possible to also hide the “JSON” and “Stats” tabs from viewers, thus leaving only “Data” visible.
Is that possible?
Thank you.
1 Like
I would like to feature as well. If you found a solution please let me know. I will do the same.
This is the same with version 8.3.4. I would like to know if anyone figured out how to remove that option. Thank you
This is still the same with Grafana 10.2.2.
I was able to hide menu item “Inspect - Panel JSON” by adding the following into one of .js in the build folder:
t.meta.canEdit&& te.push({text:(0,x.t)(“panel.header-menu.inspect-json”,“Panel JSON”)
But can’t figure out how to hide tabs “Panel JSON” and “Stats”…
Hi all,
Quoting the grafana creator, Torkel in his answer on this issue on Grafana repo:
Hiding this in the UI won’t make any difference if a user wants access to the query they can see that in the network and dashboard json model.
All queries are dynamically composed and sent from the browser so the browser always have access to the full query and every user who is part of an organization can issue any possible query for the data sources added to that org.
Configure security | Grafana documentation
1 Like
Close since it’s a really old topic that was brought back and has a “common sense” answer on the community.