Skip to content

Commit

Permalink
add missing fields to haproxy input (#2323)
Browse files Browse the repository at this point in the history
  • Loading branch information
phemmer authored and sparrc committed Feb 2, 2017
1 parent a610f8b commit 55d3f70
Show file tree
Hide file tree
Showing 4 changed files with 230 additions and 321 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ It is highly recommended that all users migrate to the new riemann output plugin

- [#2077](https://github.com/influxdata/telegraf/issues/2077): SQL Server Input - Arithmetic overflow error converting numeric to data type int.
- [#2262](https://github.com/influxdata/telegraf/issues/2262): Flush jitter can inhibit metric collection.
- [#2318](https://github.com/influxdata/telegraf/issues/2318): haproxy input - Add missing fields.
- [#2287](https://github.com/influxdata/telegraf/issues/2287): Kubernetes input: Handle null startTime for stopped pods.
- [#2356](https://github.com/influxdata/telegraf/issues/2356): cpu input panic when /proc/stat is empty.
- [#2341](https://github.com/influxdata/telegraf/issues/2341): telegraf swallowing panics in --test mode.
Expand Down
6 changes: 5 additions & 1 deletion plugins/inputs/haproxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
servers = ["http://1.2.3.4/haproxy?stats", "/var/run/haproxy*.sock"]
```

#### `servers`
Server addresses need to explicitly start with 'http' if you wish to use HAproxy status page. Otherwise, address will be assumed to be an UNIX socket and protocol (if present) will be discarded.

For basic authentication you need to add username and password in the URL: `http://user:password@1.2.3.4/haproxy?stats`.
Expand All @@ -26,9 +27,12 @@ When using socket names, wildcard expansion is supported so plugin can gather st

If no servers are specified, then the default address of `http://127.0.0.1:1936/haproxy?stats` will be used.

#### `keep_field_names`
By default, some of the fields are renamed from what haproxy calls them. Setting the `keep_field_names` parameter to `true` will result in the plugin keeping the original field names.

### Measurements & Fields:

Plugin will gather measurements outlined in [HAproxy CSV format documentation](https://cbonte.github.io/haproxy-dconv/1.5/configuration.html#9.1).
Plugin will gather measurements outlined in [HAproxy CSV format documentation](https://cbonte.github.io/haproxy-dconv/1.7/management.html#9.1).

### Tags:

Expand Down
Loading

0 comments on commit 55d3f70

Please sign in to comment.