Description
Hey,
we encounter some problems with multiple (2) destinations for the write_http
plugin.
according to the documentation, you have to specify a URL block for each destination.
Each destination you want to post data to needs to have one URL block
This is our custom configuration in /etc/collectd/collectd.conf.d/custom.conf
LoadPlugin "write_http"
LoadPlugin "ping"
<Plugin ping>
Host "google.com"
</Plugin>
<Plugin "write_http">
<URL "https://custom-metrics.com/api/v1/metrics">
Format "JSON"
User "user"
Password "password"
</URL>
<URL "https://collectd.librato.com/v1/measurements">
Format "JSON"
User "user"
Password "password"
</URL>
</Plugin>
our collectd version (using official Ubuntu trusty Pacakge):
ii collectd 5.4.0-3ubuntu2 amd64 statistics collection and monitoring daemon
ii collectd-core 5.4.0-3ubuntu2 amd64 statistics collection and monitoring daemon (core system)
Using only 1 URL block works for both configurations independently. Configuring 2 URLs only sends the metrics to the URL configured last.
we see the following line twice in the syslog after starting collectd.
plugin: register_callback: a callback named 'write_http' already exists - overwriting the old entry!
What is the correct way to specify multiple destinations for the writte_http plugin?
thanks for your help.