Skip to content

Commit

Permalink
Insert documentation into sample-config on JSON parsing
Browse files Browse the repository at this point in the history
closes #521
  • Loading branch information
sparrc committed Jan 25, 2016
1 parent f9517dc commit 3bfb3a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/inputs/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions plugins/inputs/httpjson/httpjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3bfb3a9

Please sign in to comment.