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:
parent
57991a111e
commit
6c588e41b4
@ -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.
|
||||
|
@ -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.
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user