TaiChar Posted October 2, 2019 Share Posted October 2, 2019 (edited) Hi, Grafana + InfluxDB + UnTelegraf: wonderfull Tutorial by panzerschreck, everything works fine. I created a nice Dashboard and everything is working, but how do i replace the unraid Dashboard with the one created in Grafana? Alternatively, how do i add a second Dashboard with Grafana between "Dashboard" and "Main"? Greets and Thanks Edited October 4, 2019 by TaiChar Quote Link to comment
Squid Posted October 3, 2019 Share Posted October 3, 2019 5 hours ago, TaiChar said: Alternatively, how do i add a second Dashboard with Grafana between "Dashboard" and "Main"? Custom Tab plugin. 1 Quote Link to comment
bonienl Posted October 3, 2019 Share Posted October 3, 2019 22 hours ago, TaiChar said: I created a nice Dashboard Please post a screenshot Quote Link to comment
Xaero Posted October 3, 2019 Share Posted October 3, 2019 4 hours ago, bonienl said: Please post a screenshot seconded. Pics or it never happened. Quote Link to comment
TaiChar Posted October 4, 2019 Author Share Posted October 4, 2019 (edited) On 10/3/2019 at 2:08 AM, Squid said: Custom Tab plugin. I Had to change the "X-Frame-Options=sameorigin" option in grafana from false to true. And I had to activate the kiosk mode "google for grafana on tv" After that Custom Tab works fine. In "Management Access" you can choose that your own Dashboard is shown after Login. Perfect thanks I added a screenshot. Edited October 4, 2019 by TaiChar 1 Quote Link to comment
bonienl Posted October 4, 2019 Share Posted October 4, 2019 That looks nice. Perhaps you should write a tutorial how to set up everything, I guess users will be interested in this. 1 Quote Link to comment
TaiChar Posted October 4, 2019 Author Share Posted October 4, 2019 5 minutes ago, bonienl said: That looks nice. Perhaps you should write a tutorial how to set up everything, I guess users will be interested in this. I have to work at the weekend, perhaps when i have a free day. 1 Quote Link to comment
MMW Posted October 16, 2019 Share Posted October 16, 2019 Any hints on how to do this "I Had to change the "X-Frame-Options=sameorigin" option in grafana from false to true." I found in the security settings x_content_type_optionsfalse x_xss_protectionfalse Which I assume will allow me to get where I need to go but for the life of me cannot find the grafana.ini config file to edit. Quote Link to comment
TaiChar Posted October 17, 2019 Author Share Posted October 17, 2019 (edited) 10 hours ago, MMW said: Any hints on how to do this "I Had to change the "X-Frame-Options=sameorigin" option in grafana from false to true." I found in the security settings x_content_type_optionsfalse x_xss_protectionfalse Which I assume will allow me to get where I need to go but for the life of me cannot find the grafana.ini config file to edit. Change Grafana.ini from: Quote # set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false. ;allow_embedding = false to: Quote # set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false. allow_embedding = true Edited October 17, 2019 by TaiChar Quote Link to comment
TaiChar Posted October 17, 2019 Author Share Posted October 17, 2019 Where to find Grafana.ini? Quote goto a folder you can access over the network, this is optional if you edit the file over the commandline, otherwise go to a random temporary folder you can write to cd /mnt/user/appdata/ copy Grafana.ini to the current folder "Grafana" is the name of the docker container. Standart is "Grafana" docker cp Grafana:/etc/grafana/grafana.ini . make grafana.ini writable chmod -777 grafana.ini edit grafana.ini over the network with notepad or notepad++ or within the commandline with nano vii, etc. copy grafana.ini back docker cp grafana.ini Grafana:/etc/grafana/grafana.ini restart Grafana i did it over the GUI, so i don't know the commandline command Quote Link to comment
MMW Posted October 17, 2019 Share Posted October 17, 2019 Thanks, I have made the changes for "allow_embedding = true" but this still does not allow me to put it in a custom tab. I can see in Grafana that the change is active, any other suggestions? Quote Link to comment
TaiChar Posted October 17, 2019 Author Share Posted October 17, 2019 35 minutes ago, MMW said: Thanks, I have made the changes for "allow_embedding = true" but this still does not allow me to put it in a custom tab. I can see in Grafana that the change is active, any other suggestions? Does the custom tab show nothing or the Grafana login? Quote Link to comment
MMW Posted October 17, 2019 Share Posted October 17, 2019 (edited) A Lovely empty screen, totally blank. Edited October 17, 2019 by MMW Quote Link to comment
Squid Posted October 17, 2019 Share Posted October 17, 2019 20 minutes ago, MMW said: A Lovely empty screen, totally blank. The default webUI for grafana is http. A browser enforced security provision is that if you access your server via https, then you cannot have an iframe of http. Whether or not you can access grafana via https is a different story. I don't know Quote Link to comment
MMW Posted October 17, 2019 Share Posted October 17, 2019 Makes sense and leads to a wonderful headache @TaiCharhow did you manage to get past this? You mention X-Frame-Options=sameorigin in one of your post but I am unable to find this in the Grafana config file. Quote Link to comment
TaiChar Posted October 18, 2019 Author Share Posted October 18, 2019 12 hours ago, MMW said: Makes sense and leads to a wonderful headache @TaiCharhow did you manage to get past this? You mention X-Frame-Options=sameorigin in one of your post but I am unable to find this in the Grafana config file. yes, by setting "allow_embedding = true" this won't be send anymore. was the ";" deleted at the beginning of the line? Is the custom tab setting correct? see screenshot? I edited three lines in the grafana.ini the one mentioned for embedding and two for the kiosk mode of grafana. [auth.anonymous] enabled = true org_name = Main but this is only to see the dashboard without logging in. If not set you should see the login screen. Quote Link to comment
MMW Posted October 18, 2019 Share Posted October 18, 2019 Hi, This is the relevant line from the Grafana.ini And my Custom tab matches yours apart from the Tab Name and Width and Height (which i tried copying just to be on the safe side). Just very odd. I take it that you are running via SSL for the UNRAID box itself? Quote Link to comment
TaiChar Posted October 18, 2019 Author Share Posted October 18, 2019 2 hours ago, MMW said: Just very odd. I take it that you are running via SSL for the UNRAID box itself? No, no SSL. I am using Unraid within my own homenetwork only, no need for SSL. Does it work without SSL? Quote Link to comment
MMW Posted October 18, 2019 Share Posted October 18, 2019 (edited) 29 minutes ago, TaiChar said: No, no SSL. I am using Unraid within my own homenetwork only, no need for SSL. Does it work without SSL? Which explains why yours is working, I use SSL even though it is on my own network. I have turned off SSL and it works and then back on and it does not, which is exactly what Squid was saying. 21 hours ago, Squid said: The default webUI for grafana is http. A browser enforced security provision is that if you access your server via https, then you cannot have an iframe of http. Whether or not you can access grafana via https is a different story. I don't know Now to see if it is possible to get Grafana to use SSL or some other way around it. Edited October 18, 2019 by MMW Quote Link to comment
MMW Posted October 19, 2019 Share Posted October 19, 2019 So after looking around I can see it is possible to run Grafana with SSL just a bit of work needed, also I read this as well From the 6.8.0-rc1 release notes: webgui: If a page is loaded via https, prevent it from loading resources via http (ie, block mixed content) Which I happen to be running so if I read this correctly I would need the SSL on Grafana to load it as a Custom Tab? Quote Link to comment
Squid Posted October 19, 2019 Share Posted October 19, 2019 Just now, MMW said: From the 6.8.0-rc1 release notes: webgui: If a page is loaded via https, prevent it from loading resources via http (ie, block mixed content) Actually, nothing to do with it. What that change is doing is blocking any image as an example being loaded via http if you're on https The issue is that its a browser enforced security system where an iframe cannot be displayed if the frame is HTTP and the main page is HTTPS, and has been in place for years. There is no way around that* short of 2 minutes ago, MMW said: need the SSL on Grafana to load it as a Custom Tab? or disabling SSL on your server. * There is one way around it that I experimented with, which is where I run a script to download the appropriate http page, and then display that within the iframe via https. But, any auxiliary support files referenced within (eg the CSS) don't get loaded, which means that in the end the success rate doing this and having it actually look right is so close to zero percent that it might as well be. Quote Link to comment
MMW Posted October 19, 2019 Share Posted October 19, 2019 Thanks Squid, so looks like the uphill struggle with SSL on Grafana is my only route it I want it in the custom tab. Works great outside, so now I need to decide if the work is worth the effort. Quote Link to comment
Squid Posted October 19, 2019 Share Posted October 19, 2019 Or just do what I do with NetData. Set it to URL (Open New Tab). Close enough Quote Link to comment
MMW Posted October 19, 2019 Share Posted October 19, 2019 True and easy to implement while I look at the SSL. Thanks Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.