Make haproxy stats refresh interval configurable

This patch adds a new variable, ``haproxy_stats_refresh_interval``,
which allows a deployer to configure their preferred refresh
interval for the haproxy stats page.

Release notes are included.

Closes-Bug: 1742526
Change-Id: I3979299478a8e9b479a4c4e821f2a45e1b2679cb
This commit is contained in:
Major Hayden 2018-01-10 13:14:15 -06:00
parent 57991a111e
commit 6c588e41b4
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1
3 changed files with 8 additions and 1 deletions

View File

@ -32,6 +32,7 @@ haproxy_stats_bind_address: 127.0.0.1
haproxy_stats_port: 1936
haproxy_username: admin
haproxy_stats_password: secrete
haproxy_stats_refresh_interval: 60
# Default haproxy backup nodes to empty list so this doesn't have to be
# defined for each service.

View File

@ -0,0 +1,6 @@
---
features:
- |
Deployers can set a refresh interval for haproxy's stats page by setting
the ``haproxy_stats_refresh_interval`` variable. The default value is
``60``, which causes haproxy to refresh the stats page every 60 seconds.

View File

@ -48,5 +48,5 @@ listen stats
stats show-legends
stats auth {{ haproxy_username }}:{{ haproxy_stats_password }}
stats admin if TRUE
stats refresh 60s
stats refresh {{ haproxy_stats_refresh_interval }}s
{% endif %}