Files
2024-05-13 12:31:47 -04:00

2.7 KiB

aliases keywords labels description title weight
../../features/panels/text/
../../panels/visualizations/text-panel/
../../reference/alertlist/
../../visualizations/text-panel/
grafana
text
documentation
panel
products
cloud
enterprise
oss
Configure options for Grafana's text visualization Text 100

Text

Text visualizations enable you to directly include text or HTML in your dashboards. This can be used to add contextual information and descriptions or embed complex HTML.

For example, if you want to display important links to your dashboard, you can use a text visualization to add these links:

{{< figure src="/static/img/docs/text-panel/text-panel.png" max-width="1025px" alt="A text panel showing important links" >}}

{{< docs/play title="Text Panel" url="https://play.grafana.org/d/adl33bxy1ih34b/" >}}

Use a text visualization when you need to:

  • Add important links or useful annotations.
  • Provide instructions or guidance on how to interpret different panels, configure settings, or take specific actions based on the displayed data.
  • Announce any scheduled maintenance or downtime that might impact your dashboards.

Panel options

{{< docs/shared lookup="visualizations/panel-options.md" source="grafana" version="<GRAFANA_VERSION>" >}}

Mode

Mode determines how embedded content appears.

{{< admonition type="note" >}} To allow embedding of iframes and other websites, you need set allow_embedding = true in your Grafana config.ini or environment variables (depending on your employment). {{< /admonition >}}

Markdown

This option formats the content as markdown.

HTML

This setting renders the content as sanitized HTML. If you require more direct control over the output, you can set the [disable_sanitize_html][] flag which enables you to directly enter HTML.

Code

This setting renders content inside a read-only code editor. Select an appropriate language to apply syntax highlighting to the embedded text.

Variables

[Variables][] in the content will be expanded for display.

{{% docs/reference %}} [disable_sanitize_html]: "/docs/grafana/ -> /docs/grafana/<GRAFANA_VERSION>/setup-grafana/configure-grafana#disable_sanitize_html" [disable_sanitize_html]: "/docs/grafana-cloud/ -> /docs/grafana/<GRAFANA_VERSION>/setup-grafana/configure-grafana#disable_sanitize_html"

[Variables]: "/docs/grafana/ -> /docs/grafana/<GRAFANA_VERSION>/dashboards/variables/variable-syntax" [Variables]: "/docs/grafana-cloud/ -> /docs/grafana-cloud/visualizations/dashboards/variables/variable-syntax" {{% /docs/reference %}}