sensu-plugins / sensu-plugins-haproxy

This plugin provides native HAProxy instrumentation for monitoring and metrics collection, including: service health and backend server metrics.
http://sensu-plugins.io
MIT License
11 stars 37 forks source link

Add a `num_up` metric for each backend #10

Closed joemiller closed 8 years ago

joemiller commented 8 years ago

This adds an additional metric per monitored haproxy 'backend', eg:

servers.:::name:::.haproxy.main.num_up 0 1456358056
servers.:::name:::.haproxy.stats.num_up 0 1456358056
servers.:::name:::.haproxy.yggdrasil.num_up 64 1456358056

This has been very useful for a particular case where we have a large number of backend procs that sometimes block or timeout and we want to alert or graph the activity overtime.

Example graph with 64 backends, showing fluctuations as the backends become stressed and temporarily drop out of haproxy's available pool:

image

analytically commented 8 years ago

Mind adding an entry to the changelog?

joemiller commented 8 years ago

@analytically Thanks, i missed that. Added to the unreleased section of the changelog.