Istvan, On 3/24/22 08:47, Szabo, Istvan (Agoda) wrote:
I’m using rate limiting with my haproxy18 and I’d like to somehow squeeze out metrics from it based on ip adresses who is close to the limit or how the users are hiting the limits.At the moment what I can do is a very silly solution and I don’t like, in a while loop I’m listening the socket and I might redirect to a file the output: while sleep 0.5;do printf 'show table https\nshow table http\n' |nc -U /var/lib/haproxy/stats done I’d like to know is there any other more elegant solution please?
I've presented a solution for real-time monitoring of a stick table on HAProxyConf 2021:
https://github.com/WoltLab/node-haproxy-peers https://www.haproxy.com/user-spotlight-series/using-haproxy-peers-for-real-time-quota-tracking/ Best regards Tim Düsterhus

