https://github.com/ryansch/haproxy-collectd-plugin
HAProxy 1.3+ Collectd Plugin
https://github.com/ryansch/haproxy-collectd-plugin
Last synced: 7 months ago
JSON representation
HAProxy 1.3+ Collectd Plugin
- Host: GitHub
- URL: https://github.com/ryansch/haproxy-collectd-plugin
- Owner: ryansch
- License: gpl-2.0
- Created: 2009-12-15T18:58:13.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2013-06-05T15:51:27.000Z (about 12 years ago)
- Last Synced: 2023-03-11T01:36:54.521Z (about 2 years ago)
- Language: Ruby
- Homepage:
- Size: 198 KB
- Stars: 24
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
This HAProxy Collectd plugin was implemented for the RightScale (http://rightscale.com) environment but should be easily adaptable for other uses.
It reads from the HAProxy stats socket and uses the column names in the first line to locate the correct columns for output to collectd. It also supports an accumulator for adding up totals for desired columns. See the @haproxy_vars instance variable for an example.
See the included haproxy.conf for an example collectd plugin config file.
Add the following to your types.db:
haproxy_status status:GAUGE:-2:2
haproxy_traffic stot:COUNTER:0:U, eresp:COUNTER:0:U, chkfail:COUNTER:0:U
haproxy_sessions qcur:GAUGE:0:U, scur:GAUGE:0:UIf you send the data over the network, make sure you update all copies of types.db.