Overhaul config <-> agent coupling. Put config in it's own package.

This commit is contained in:
Cameron Sparr
2015-11-24 14:22:11 -07:00
parent 8dde60e869
commit 979e5f193a
23 changed files with 554 additions and 748 deletions

View File

@@ -48,7 +48,7 @@ func (c RealHTTPClient) MakeRequest(req *http.Request) (*http.Response, error) {
var sampleConfig = `
# Specify services via an array of tables
[[httpjson.services]]
[[plugins.httpjson.services]]
# a name for the service being polled
name = "webserver_stats"
@@ -69,7 +69,7 @@ var sampleConfig = `
# ]
# HTTP parameters (all values must be strings)
[httpjson.services.parameters]
[plugins.httpjson.services.parameters]
event_type = "cpu_spike"
threshold = "0.75"
`