-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requesting HTTP_response plugin to support multiple addresses #2294
Comments
this is documented: https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#output-configuration-examples if you want to submit a PR to make it more obvious, that would be OK as well |
Also: A tip from the linked docs:
|
Hi is there a way to configure multiple http_requests in one input something like below:- Tried modifying the file to monitor multiple web sites using the config file
after saving this when I tried when i tried
after saving this when I tried when tried
it returned Can you please reply. |
Okay. learnt that below config can handle it.
Thanks for the wonderful project..
|
Feature Request
Proposal:
HTTP_response plugin should support checking connectivity and response times of multiple addresses.
Currently in config file only one address can be given:
address = ""
which is limiting. Instead it shouldbe possible to give a list of addresses, similar to the HTTPJSON plugin, which takes a list of servers.
In my use case I desired to monitor the /health api responses of several microservices at once.
Edit:
It turns out that the whole configuration sections
[[inputs.http_response]]
can be duplicated and telegraf will obey and act on each copy. So this issue is more about having somewhere in documentation mentioned clearly that (all or just some?) plugins can be instantiated multiple times. Current documentation does not point this out so the reader will automatically assume that each plugin is configured once only.The text was updated successfully, but these errors were encountered: