{# prometheus/_preview.html — the template editor's live preview (#5692): what's typed, checked; when it passes, drawn over the chosen target as the dashboard widget would draw it (widget.html, the same fragment). #} {% if problems %}
{{ problems|length }} problem{{ "s" if problems|length != 1 }} to fix before it draws.
{% elif empty %}

Paste or write a template, and it's drawn here as you type.

{% elif view is none %}
“{{ template.name }}” passes the checker.

Add a Prometheus target to see it drawn over real values.

{% else %} {% include "prometheus/widget.html" %} {% endif %}