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

It depends on the format of the response of http://10.135.98.52:8581/odata/api/interfaces?$select=ID&$filter=((groups/Name eq ‘GRX’)) (open in a browser and paste here if you are unsure). These docs explain what data input formats are supported.