Hi everyone,
I’m working on a Grafana dashboard (Grafana v11) where I am displaying tagging compliance for jobs. Each job has four tag fields:
-
product
-
project
-
harness
-
jobtype
For each tag field, I have:
-
A backend variable that returns all actual tag values found in the data (valid + invalid).
-
A second custom variable that contains only the list of valid/approved tag values.
(Each valid list has around 200–300 entries.)
My summary table shows one row per job with all four tags. What I want to do is:
-
If the tag value exists in the valid-values list → color the cell green
-
If the tag value does not exist in the valid-values list → color the cell red
Problem
I tried Value Mappings, but it requires manually adding each valid value, which is:
-
Time-consuming
-
Error-prone
-
Not scalable (because each valid list contains hundreds of values)
-
And I am not sure if Grafana has a practical limit for the number of value mappings.
Question
Is there a way in Grafana to:
-
Apply conditional cell color based on whether the value appears in a list variable, without manually mapping every allowed value?
-
Ideally using:
-
Overrides
-
Regex match
-
Transformations
-
Or a panel-level style rule
-
Data Source
Elastic / Lucene queries, displayed in a Table panel.
Looking for Guidance On:
-
Recommended Grafana pattern for this use case
-
Whether regex-based or variable-reference style coloring is supported
-
Any transformation or computed field approach others use for tag validation tables
Thanks,
Veena
