Show colors in a graph which depend on multiple metrics?

Hi guys,

I am fairly new to Grafana and need to achieve something like this.
We have two metrics, let’s call them x and z. Both can be 0 or 1.

I need Grafana to display green if x is 0 and z is 1.
I need Grafana to display orange if only x becomes 1.
I need Grafana to display red if z is 0.

Can this be done? Could you guys tell me how?

Cheers
Sherry

Try x + 2 - (2 * z), with thresholds of:

0 = green
1 = orange
2 = red

There’s alos the case of x=1, z=0, which will give a result of 3, but since
that’s higher than 2, you will still end up with red.

Antony.

1 Like