From 3bfb3a9fe234544fce583ea57e510a2e4dbb8b06 Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Mon, 25 Jan 2016 13:29:05 -0700 Subject: [PATCH] Insert documentation into sample-config on JSON parsing closes #521 --- plugins/inputs/exec/exec.go | 3 +++ plugins/inputs/httpjson/httpjson.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/plugins/inputs/exec/exec.go b/plugins/inputs/exec/exec.go index 603ba1464..0fc0b098a 100644 --- a/plugins/inputs/exec/exec.go +++ b/plugins/inputs/exec/exec.go @@ -13,6 +13,9 @@ import ( ) const sampleConfig = ` + # NOTE This plugin only reads numerical measurements, strings and booleans + # will be ignored. + # the command to run command = "/usr/bin/mycollector --foo=bar" diff --git a/plugins/inputs/httpjson/httpjson.go b/plugins/inputs/httpjson/httpjson.go index b90a02e5b..577b6922e 100644 --- a/plugins/inputs/httpjson/httpjson.go +++ b/plugins/inputs/httpjson/httpjson.go @@ -45,6 +45,9 @@ func (c RealHTTPClient) MakeRequest(req *http.Request) (*http.Response, error) { } var sampleConfig = ` + # NOTE This plugin only reads numerical measurements, strings and booleans + # will be ignored. + # a name for the service being polled name = "webserver_stats"