-
What Grafana version and what operating system are you using?
Managed Grafana V11.0.0 -
What are you trying to achieve?
Post an alert message on top of every dashboard when there are data quality issues.
A quarriable database that is a data source in Grafana contains a Boolean variable indicating if there are data quality issues. -
How are you trying to achieve it?
I am requesting advice on solutions that does not require modifying code backend
What I want is a solution that:
- Does not require a variable. (can query directly in the panel)
- Supports HTML
- Does not take up empty space when there is no need to print out an alert.
The solutions I have tried:
Solution 1: using the text panel.
A hidden variable query checks the data quality parameter. If data quality is good, it the variable obtains an empty string. If data quality is bad, the variable obtains a HTML code that is used in the text panel. Downsides: The variable appears in the URL, and 99% of the time the text panel sits empty while using space on top every dashboard (ugly UI).
Solution 2: Using the table panel.
Query directly in the table panel. If data quality is good, it the tables panel is a 1x1 empty tabel. If data quality is bad, a string in a 1x1 table is shown to the user. The advantage here is a hidden variable is not needed. Downside is that the table panel does not accept HTML formatting and 99% of the time the table panel sits empty on top of every dashboard.
Solution 3: Using the dynamic text panel plugin.
Query directly in the text panel. If data quality an empty string is printed. If data quality is bad, the text panel print a string. This solution does not require a variable and it does allow for HTML formating. However, the plugin is not available in our managed Grafana and it still require a empty panel on top of every dashboard.