FeliceGeracitano / webperf-dashboard

Web Performance Dashboard forked from https://github.com/boyney123/garie
Other
51 stars 21 forks source link

Fix iframe in Grafana #14

Closed poteirard closed 5 years ago

poteirard commented 5 years ago

The problem

The Grafana dashboard shows the html/script instead of the lighthouse report website.

Single_Web_Page_Audit_-_Grafana

The solution

Single_Web_Page_Audit_-_Grafana

Grafana version 6 introduced a breaking change for the Text Panels which blocks the custom scripts/html.

Text Panel: The text panel does no longer by default allow unsantizied HTML. #4117. This means that if you have text panels with scripts tags they will no longer work as before. To enable unsafe javascript execution in text panels enable the settings disable_sanitize_html under the section [panels] in your Grafana ini file, or set env variable GF_PANELS_DISABLE_SANITIZE_HTML=true.