Closed stjacob closed 2 years ago
Hi @stjacob,
My first thought was, "does this collector support multiple URLs", unfortunately it doesn't, is this something you think you'd be able to add? No problem if not.
Or alternatively, there is a way to run multiple instances of the same collector:
1) Add collectors_config_path = <some/path/to/your/collector/config>
2) Make sure your HTTPJSONCollector.conf
exists at that path
3) Now make a copy of that config file and rename it to HTTPJSONCollector 2.conf
(NOTE the space).
4) Make change to the new config file and then start diamond. You should now have two instances of the collector running, each using a different config.
Let me know how you get on with this, thanks.
Reopen if the above solution does not work.
I tried these methods and failed:
[[HTTPJSONCollector]] hostname = 172_17_14_121 enabled = True url = http://172.17.14.121:18077/monitor?cmd=qps interval = 60
What is the correct way?