grafana / grafana-kiosk

Kiosk Utility for Grafana
Apache License 2.0
343 stars 57 forks source link

grafana 9 sidebar shows when in kiosk=full mode #88

Open alirezamansoori opened 1 year ago

alirezamansoori commented 1 year ago

Upgrading from version 8 to 9.1.8 when kiosk mode is set to full, the sidebar navigation is showing.

alirezamansoori commented 1 year ago

I was under the impression that there may be a fix for this with 9.3.x release. It looks like the kiosk=full functionality is still broken.

briangann commented 1 year ago

i'm not seeing this, but my dashboards are set to auto-fit, do you have the options being passed to the dashboard? and is the dashboard larger than the screen (requires scrolling normally?)

gaetanars commented 1 year ago

After investigating, if you set the root url of Grafana, when Grafana redirecting to the home dashboard the kiosk option is not conservated.

./grafana-kiosk --URL=https://play.grafana.org
2023/03/23 07:47:46 URL: https://play.grafana.org
2023/03/23 07:47:46 LoginMethod: anon
2023/03/23 07:47:46 Username: guest
2023/03/23 07:47:46 Password: *redacted*
2023/03/23 07:47:46 IgnoreCertificateErrors: false
2023/03/23 07:47:46 IsPlayList: false
2023/03/23 07:47:46 Fieldname AutoLogin: false
2023/03/23 07:47:46 Fieldname Username: username
2023/03/23 07:47:46 Fieldname Password: password
2023/03/23 07:47:46 DISPLAY= :0
2023/03/23 07:47:46 XAUTHORITY= /run/user/1001/gdm/Xauthority
2023/03/23 07:47:46 method  anon
2023/03/23 07:47:46 Launching ANON login kiosk
2023/03/23 07:47:46 Using temp dir: /tmp/chromedp-kiosk3812388023
2023/03/23 07:47:48 KioskMode: TV
2023/03/23 07:47:48 Navigating to  https://play.grafana.org?kiosk=tv&autofitpanels

But if you set the dashboard url instead of the root url, there is no redirect and the kiosk option is conservated

./grafana-kiosk --URL=https://play.grafana.org/d/000000012/grafana-play-home?orgId=1
2023/03/23 07:51:18 URL: https://play.grafana.org/d/000000012/grafana-play-home?orgId=1
2023/03/23 07:51:18 LoginMethod: anon
2023/03/23 07:51:18 Username: guest
2023/03/23 07:51:18 Password: *redacted*
2023/03/23 07:51:18 IgnoreCertificateErrors: false
2023/03/23 07:51:18 IsPlayList: false
2023/03/23 07:51:18 Fieldname AutoLogin: false
2023/03/23 07:51:18 Fieldname Username: username
2023/03/23 07:51:18 Fieldname Password: password
2023/03/23 07:51:18 DISPLAY= :0
2023/03/23 07:51:18 XAUTHORITY= /run/user/1001/gdm/Xauthority
2023/03/23 07:51:18 method  anon
2023/03/23 07:51:18 Launching ANON login kiosk
2023/03/23 07:51:18 Using temp dir: /tmp/chromedp-kiosk2822323920
2023/03/23 07:51:20 KioskMode: Fullscreen
2023/03/23 07:51:20 Navigating to  https://play.grafana.org/d/000000012/grafana-play-home?kiosk=1&orgId=1&autofitpanels

I have not tested with an authenticated Grafana instance.