I have an issue trying to mimic HAProxy statistics...
# support
g
I have an issue trying to mimic HAProxy statistics page. I want simple widget where I get the health status of some services. I get back 200 to 500 response and I want to print green/orange/red depending of the status. I was able to get the data from OTel collector to Clickhouse, it was a challenge but it's ok. I return 1 for server down (5xx), 2 for error (3xx and 4xx), 3 when service up (2xx) Now in the dashboard I made a number kind of panel. I wanted to setup the thershold to status < 2 -> red, 2 >= result < 3 -> orange, result >= 3 green. But it's not possible to get that since the way whe can configure thersold make this with 2 possibles values.
v
@Sagar Rajput please help here
s
Checking
g
What I would like to have is the = operator. If r = 1 -> red, elseif r = 2 -> orange, elseif r = 3 -> green, And even an option to do else -> black @Sagar Rajput
And even add a between operator like >= 2 AND < 3
s
Currently, we don't have a between operator or an
=
operator. But something like below would also work for your use case