-
Notifications
You must be signed in to change notification settings - Fork 105
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
Issue with write_http to librato #15
Comments
Thanks. I will take a look. |
❤️ thanks! |
@mheffner could this be related to the other issue we saw with custom plugins? |
We noticed that with Python input plugins the write_http output will choke if the As an example, we had to set the meta field as follows. I'm still unsure what form the
|
/cc @obfuscurity |
Yup, it looks the same as my problem in Collectd with the To narrow down: try this and look for errors. I bet it'll work.
The Librato API expects JSON so that's not a solution. As far as workarounds, you can assign that dummy dict to meta as @mheffner showed (implications? probably nothing if your data is delivering to Librato) or use the now-deprecated Librato writer plugin at https://github.com/librato/collectd-librato instead of write_http. |
Yup - that was it. I added And now the metrics are getting sent up. Thanks all. I'm not going to submit a PR cause i'm not sure if that will cause issues with non-librato usage of write_http. |
@petecheslock AFAIK this isn't strictly limited to Librato. We just parse the JSON produced by write_http like any other target would. So this affects at least anyone using write_http to push JSON? |
I've had the same issue trying to use the write_http plugin. I created a pull request at #19 Would be great to get it fixed here as well, but since it's somewhat rare I also understand if rejected. |
There's a bug with Collectd's write_http plugin that is present in Collectd 5.4.1 (the version distributed with Ubuntu LTS). The result is that RabbitMQ stats cannot be pushed as JSON with the write_http plugin. This affects people publishing stats to Librato. For more detail, see the following bug reports: phobos182/collectd-elasticsearch#15 collectd/collectd#716
i'm using collectd version
5.4.0
, and es version0.9.x
. When loading the plugin the syslog reports it's able to fire the read callback and find all the stats (per this https://gist.github.com/petecheslock/795b708d1fbddc459dc5) But as you can see in gives an error when it tries to write:Filter subsystem: Built-in target
write': Dispatching value to all write plugins failed with status -1`If I uncomment the rrdtool plugin and comment out
Then the metrics get tracked but into rrd (and not up to librato obviously).
My (sanitized) collectd.conf is in the following gist.
https://gist.github.com/petecheslock/d6c47edd2e32bf35ffb9
So i'm guessing there is something about the write_http plugin that the output of this script doesnt likes, although i'm not sure where to look. Any ideas?
The text was updated successfully, but these errors were encountered: