Stat panel color based on flag

  • What Grafana version and what operating system are you using?
    OSS 11.1.2

  • What are you trying to achieve?
    I try to set panel stat colors based on value that I have from another query. In tried to do this in similar way I can do this in table panel. So I select two queries and I do override like on screenshot. But I can’t manage to work it on stat panel. It works only with non-dynamic values and simple thresholds or value mappings.
    This is screenshot how I did it in table panel.

  • What did you expect to happen?

I want to make this field on left red and as only visible field in this stat panel

Check if this approach works for you:

It works fine but for table. I have problem with making it for “Stat” panel.

Hi, can you provide some more details, how your data looks like (queries results). From what I see now, cell options > cell type will only have effect on table, value mappings should work though, but I don’t think that’s what you’re after.