Skip to content

Commit

Permalink
jolokia input: add note about POST permissions
Browse files Browse the repository at this point in the history
closes #1628
  • Loading branch information
sparrc committed Sep 6, 2016
1 parent 49ea4e9 commit 1271f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/jolokia/jolokia.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1271f9d

Please sign in to comment.