-
Notifications
You must be signed in to change notification settings - Fork 527
added encoder for OpenTSDB #1751
base: dev
Are you sure you want to change the base?
Conversation
@timurb great work. Looking forward for this to be merged. 👍 |
|
||
- add_hostname_if_missing (boolean, optional, default false) | ||
If no 'host' tag has been seen, append one with the value of the | ||
Hostname field. Deprecated in favour of using the 'fieldfix' filter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no fieldfix
filter, this must be a reference to a custom filter that you're using internally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was left from @hynd's implementation. I'll remove the reference.
Overall this looks great, thanks! I made a bunch of comments, but they're pretty much all for small stylistic issues. In addition to the in-line comments, we'll want to have an entry added to the CHANGES.txt changelog, and the lovely documentation comment you've provided will need to be wired up to the |
The code is updated according to your feedback. I've updated the docs but have never worked with RST so not very confident all is fine there, please let me know if it looks correct. |
+1 |
Should I rewrite the code using I'm referring to this discussion: https://mail.mozilla.org/pipermail/heka/2015-October/000831.html |
@timurb As I said in the mailing list thread, Also, using |
Ok, I'll leave Regarding |
Hi,
Here is an encoder for OpenTSDB.
It is loosely based on https://github.com/hynd/heka-tsutils-plugins/blob/master/lua_encoders/opentsdb_http.lua but is able to process full-formed JSON with depth of 1 level.
You'll probably have some suggestions on improvement prior to merging this which I'll be happy to fix.