From 1271f9d71a81bb3ac5bb7a8c8bc951b5e3576d1a Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Tue, 6 Sep 2016 11:11:27 +0100 Subject: [PATCH] jolokia input: add note about POST permissions closes #1628 --- plugins/inputs/jolokia/jolokia.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/jolokia/jolokia.go b/plugins/inputs/jolokia/jolokia.go index 53bb65fd0..2cc0d6422 100644 --- a/plugins/inputs/jolokia/jolokia.go +++ b/plugins/inputs/jolokia/jolokia.go @@ -52,6 +52,7 @@ type Jolokia struct { const sampleConfig = ` ## This is the context root used to compose the jolokia url + ## NOTE that your jolokia security policy must allow for POST requests. context = "/jolokia" ## This specifies the mode used @@ -104,7 +105,6 @@ func (j *Jolokia) Description() string { } func (j *Jolokia) doRequest(req *http.Request) (map[string]interface{}, error) { - resp, err := j.jClient.MakeRequest(req) if err != nil { return nil, err