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
Vikrant Gupta
04/24/2025, 7:18 AM
@Sagar Rajput please help here
s
Sagar Rajput
04/24/2025, 7:19 AM
Checking
g
Gil
04/24/2025, 7:39 AM
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
Gil
04/24/2025, 7:40 AM
And even add a between operator like >= 2 AND < 3
s
Sagar Rajput
04/24/2025, 8:25 AM
Currently, we don't have a between operator or an
=
operator. But something like below would also work for your use case
SigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.