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.