Grafana v8.0.6 HTML Issue

  • What Grafana version and what operating system are you using?

v8.0.6 Centos 7

  • What are you trying to achieve?

I want to apply custom html to my Grafana Dashboard

  • How are you trying to achieve it?

I added the following to a text panel, the public/gsoc/ does exist in /usr/share/grafana/public/gsoc

I read something about after version 6.0 you need to escape the html.

Please clarify

<link rel="stylesheet" type="text/css" href="public/gsoc/css/dashboards.css">

<div id="header"  style="padding-top:5px">
  <div id="client_logo">
    <a href="#"><img src="public/gsoc/img/oml.png" style="width:20%; height:20%;"/></a>

  <div id="gsoc_logo">
    <img src="public/gsoc/img/mitigate.png" />

  • What happened?

The panel displays my html code instead of calling the logo and css.

  • What did you expect to happen?

This works on grafana 5.4, I want to move over to the latest version.

I will fix this using the HTML Plugin.

This topic was automatically closed after 365 days. New replies are no longer allowed.