Hi Jessy, We made an opensource feedback agent which you can use if you like, it'll save you the need to make anything:
https://www.loadbalancer.org/blog/open-source-windows-service-for-reporting-server-load-back-to-haproxy-load-balancer-feedback-agent/ Aaron West Loadbalancer.org Ltd.