Inputs.http_response authentication

Hi,

I need to telegraf test the GET of the following URL:

http://10.135.98.52:8581/odata/api/interfaces?$select=ID&$filter=((groups/Name eq ‘GRX’))”

The server need a username/pass authentication.

How can I configure the plugin http_response?

I tried something like this:

HTTP/HTTPS request CA ODATA API Test

[[inputs.http_response]]
name_suffix = “_ca_odata”
address = “http://10.135.98.52:8581/odata/api/interfaces?$select=ID&$filter=((groups/Name eq ‘GRX’))”
response_timeout = “5s”
method = “GET”
follow_redirects = false
username = “user”
password = “pass”

BR

DAvid