Hi Joel,

On Tue, Jan 25, 2011 at 01:29:11PM -0800, Joel Krauska wrote:
> I'm not sure if people have asked for this, but I would love a custom
> field/column in the Stats Report web page.
> 
> Specifically, I would like to be able to see my backend server
> version. This is a custom text string which I could provide a
> health-check-like URL to populate.
> 
> Then the HAProxy stats page could be a one-stop page to watch during
> rolling upgrades of backends.
> 
> Probably for easy customization, an external call to third party
> script would be ideal.
> 
> Has anyone considered this before?  Is there any way to hack existing
> features to do this?

You should take a look at "stats show-desc". You can already use it to
report a section-specific string. You can then have your upgrade script
fill it from a config template. For instance :

backend foo
        stats show-desc @@foo.version@@

Then replace @@foo.version@@ with whatever you like.

Assuming you're in a secure enough environment to consider such things,
you should also take a look at "stats show-legends" which reports much
more information (eg: mode, IPs, cookie names, etc...). This is different
from what you asked for but will surely help troubleshoot issues if you
already feel concerned with the config version.

Cheers,
Willy


Reply via email to