I want to set
allow_embedding = true
Then I restart my server with
sudo reboot
Then i check the settings in grafana, but they did not change. Can Somebody help me ?
Sure thing, can you reply to these three questions?
- What OS are you running? (Ubuntu? MacOS? Debian? Fedora? Red Hat? FreeBSD? Windows? [probably not since you mentioned
sudo reboot
]) - How did you install Grafana? (Package? Docker? Did you follow a specific guide?)
- Which configuration file are you editing?
- Raspbian Buster Lite
- https://simonhearne.com/2020/pi-influx-grafana
- /etc/grafana/grafana.ini
Ok, that seems to be the correct configuration file and the installation instruction seems correct.
Are you sure youâre editing allow_embedding
under the [security]
subsection?
By the way, if you want to just restart Grafana, you can do so by writing sudo systemctl restart grafana-server
, you donât have to restart the server itself
Ah, thanks for the screenshots.
Youâll want to remove the ;
at the very start of the line. It tells the configuration to ignore that line. Iâve seen this happen before, we should really make that much clearer.
Thanks that worked. Now I have the problem that if I want to embed a panel. Then the login page appears on the website and not the panel.
Iâm not confident in this, because Iâve never tried this, but you might have to set the cookie-samesite
option to none
for iframes to work. See the security.cookie-samesite documentation and this post on SameSite Cookie Recipes for some background.
I logged in one time. Now it runs, even if I refresh the page
Nice!
But if load the website on a other device, I have to log in againâŚ
Yes. If you connect from another device, how would Grafana know it is the
same âyouâ until youâve given it your username & password?
Antony.
Is it possible that i donât have to log in and everyone can see the panel?
Yes, you can allow anonymous authentication, see
Iâm not able to see the contents of grafana.ini. Using vi etc/grafana/grafana.ini command on Ubuntu. Could you pls help?
-
Please give more information - instead of just âIâm not able toâŚâ tell us
what happens when you try. -
It could be something as simple as missing a leading / on the pathname.
Depending on where you were when you ran that vi command, it will be looking
for âetcâ in the local directory, and that may not exist. -
Show us what the output of âls -l /etc/grafanaâ is.
Thanks,
Antony.
Thanks for replying.
Actually I want to render my charts in html for that I need to set allow_embedding=true; but when I make these changes into the grafana.ini file it did not changed in the grafana console and also Iâm getting an error. Attaching screenshots below for better understanding.
Thanks
Hey , I am using linux and want to make the changes in make changes in /etc/grafana/grafana.ini bt do not know how to do that
âallow_embedding = true
auth.anonymous
enabled = true
org_name = <>
org_role = Viewerâ
These are the changes I want to make