Oct 01, 2020 · If you want to change login details of HAProxy stats, edit your configuration and update “stats auth” value like below: stats auth username:password Save the configuration file and restart HAProxy to update service. Step 4 – Change HAProxy Stats URL. To change url of haproxy stats edit configuration file and update following value. Generate a Scrape Config Job for each endpoint that will be scraped per cluster. ( Required Ports for PKS Cluster Discovery ) Merge the generated Scrape Config Jobs with both the default Scrape Config Jobs and the user-provided Additional Scrape Configs .
Make sure you have placed all the configuration files and required template files on /path/to/etc/haproxy, files like haproxy.cfg, 404.http, 500.http etc. If you used a bind mount for the config and have edited your haproxy.cfg file, you can use HAProxy’s graceful reload feature by sending a SIGHUP to the container: # docker kill -s HUP haproxy