Insert documentation into sample-config on JSON parsing

closes #521
This commit is contained in:
Cameron Sparr 2016-01-25 13:29:05 -07:00
parent f9517dcf24
commit 3bfb3a9fe2
2 changed files with 6 additions and 0 deletions

View File

@ -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"

View File

@ -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"