I am using jolokia2 agent and the following is the authentication part in telegraf.conf.
urls = [“http://xx.xxx.xx.xxx:1111/jolokia”]
username = “test”
password = “test123”
name_prefix = “weblogic.”
Below is the error message:
Error in plugin: Unable to gather metrics for …:1111/jolokia: Response from url “… :1111/jolokia” has status code 403 (Forbidden), expected 200 (OK)
Is my way of specifying the credentials correct? I am sure the credentials works as I saw results when I directly accessed to the url from my local after entering the credentials. Is there any other reason resulting in the error? Could that be related to any access/permission I need to grant the account on weblogic instance?