Skip to content
Snippets Groups Projects
Commit 3bfb3a9f authored by Cameron Sparr's avatar Cameron Sparr
Browse files

Insert documentation into sample-config on JSON parsing

closes #521
parent f9517dcf
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,9 @@ import ( ...@@ -13,6 +13,9 @@ import (
) )
const sampleConfig = ` const sampleConfig = `
# NOTE This plugin only reads numerical measurements, strings and booleans
# will be ignored.
# the command to run # the command to run
command = "/usr/bin/mycollector --foo=bar" command = "/usr/bin/mycollector --foo=bar"
......
...@@ -45,6 +45,9 @@ func (c RealHTTPClient) MakeRequest(req *http.Request) (*http.Response, error) { ...@@ -45,6 +45,9 @@ func (c RealHTTPClient) MakeRequest(req *http.Request) (*http.Response, error) {
} }
var sampleConfig = ` var sampleConfig = `
# NOTE This plugin only reads numerical measurements, strings and booleans
# will be ignored.
# a name for the service being polled # a name for the service being polled
name = "webserver_stats" name = "webserver_stats"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment