Grafana Cloud Enterprise Open source

Business Text

The Business Text visualization panel is a perfect companion to Business News Data Source.

The Business Text panel visualizes the RSS feed from a YouTube channel.

Disable Sanitize HTML

To display HTML returned from feeds, disable the Sanitize HTML parameter.

Docker

sh
GF_PANELS_DISABLE_SANITIZE_HTML=true

Example

To display the YouTube feed with the latest videos, this example uses HTML and Handlebars templates for data fields.

Handlebar valueDescription
{{author}}Author.
{{date updated 'MMM, DD YYYY'}}Updated date in the specific format.
{{link}}URL.
{{media:group:media:thumbnail:url}}Thumbnail URL.
{{title}}Title.

The template (Content) displays for each row as defined in the options.

HTML
<table width="100%" style="border: 0">
  <tr>
    <td width="*" style="border: 0">
      <h3>
        <a target="_blank" style="color: blue" href="{{link}}">{{title}}</a>
      </h3>
    </td>
    <td rowspan="2" style="border: 0" width="30%">
      <div><img src="{{media:group:media:thumbnail:url}}" /></div>
    </td>
  </tr>
  <tr>
    <td style="border: 0">
      <b>{{date updated 'MMM, DD YYYY'}} by {{author}}</b>
    </td>
  </tr>
</table>