Updating Readme

Added full URI to parse haproxy stats
This commit is contained in:
chewieip 2016-05-03 10:39:53 +02:00
parent be91cc8d28
commit aa441ba30c
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
# Telegraf plugin: Haproxy
#### Configuration
```toml
[[inputs.haproxy]]
# ## An array of address to gather stats about. Specify an ip on hostname
# ## with optional port. ie localhost, 10.10.3.33:1936, etc.
#
# ## If no servers are specified, then default to 127.0.0.1:1936
# servers = ["http://myhaproxy.com:1936/;csv", "http://anotherhaproxy.com:1936/;csv"]
servers = ["http://localhost:8080/haproxy?stats;csv"]
```
URI will be different for each server. Plugin doesn't modify it when it queries to Haproxy stats webpage.