Change InnerConfig to config and modified exec.go to back-compatible with old command configuration.

This commit is contained in:
Henry Hu
2016-02-03 23:47:55 +08:00
parent 7c8222813b
commit d74159d6d1
7 changed files with 23 additions and 14 deletions

View File

@@ -107,7 +107,7 @@
# Read flattened metrics from one or more commands that output JSON to stdout
[[inputs.exec]]
# the command to run
commands = ["/usr/bin/mycollector --foo=bar"]
command = "/usr/bin/mycollector --foo=bar"
name_suffix = "_mycollector"
# Read metrics of haproxy, via socket or csv stats page