Hi
I need to collect data, via the inputs.http plugin, from multiple ip addresses, each running the same response code. I’ve added the following to the telegraf inputs.http section but I’m not sure about the host tag.
[[inputs.http]]
urls = [
"http://ms-00001:8085/mediationproxy/api/appDetailsTelegraf"
]
method = "GET"
timeout = "5s"
tagexclude = ["url"]
[inputs.http.tags]
host="ms-00001"
[[inputs.http]]
urls = [
"http://ms-00002:8085/mediationproxy/api/appDetailsTelegraf"
]
method = "GET"
timeout = "5s"
tagexclude = ["url"]
[inputs.http.tags]
host="ms-00002"
The data I collect seems to populate a column of “host_1” rather than “host”. Is there any reason for this? Everything else is working fine and as long as I know that the column is “host_1”, that’s fine also.
Just wondering whether I’ve done something wrong or assuming something?
TIA
Martin