Stats with docker containers

Hi

Can anyone point me in the right direct, I have haproxy setup in docker containers. If I set it up as “static” regions e.g say dallas, frankfurt, singapore I can get stats working propely etc, I’m scrapping with prometheus and viewing in grafana. but as soon as I set the docker conatiners/ pods to spin up/down automatically depending on where traffic is coming from, I seem to loose stats etc, its still the same endpoint prometeus scrapes from etc and I can see some stats at the endpoint

stats are not persistent across reload by default so if the haproxy process is stopped and restarted due to the container being stopped during migration this could explain why you are loosing some stats

Perhaps the stats-file feature could help you to preserve stats during migrations, more info here: HAProxy version 3.3-dev0-21 - Management Guide