-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Emqtt batch output #4094
Emqtt batch output #4094
Conversation
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.
In addition to my comments below, can you update this PR to use the new SerializeBatch
method that I added in #4107? This method will helps with outputting batches for formats that are not line oriented (currently JSON).
We will need to use the regular Serialize
for non-batching mode to preserve backwards compatibility.
Lastly, can you fix the conflict caused by some unrelated changes on master.
etc/telegraf.conf
Outdated
@@ -543,6 +543,13 @@ | |||
# ## Use SSL but skip chain & host verification |
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.
Revert this file, I'll generate the telegraf.conf later from the sample configurations.
plugins/outputs/mqtt/mqtt.go
Outdated
TopicPrefix string | ||
QoS int `toml:"qos"` | ||
ClientID string `toml:"client_id"` | ||
BatchMessage bool `toml:"batch"` |
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.
Add documentation for the new option into the SampleConfig()
, then run telegraf -usage mqtt
to get the output for updating the README.
using serializeBatch here does not help as we need to construct topic names based on each metric before serializing. Hence i believe we can retain serialize method for this plugin |
There will still be multiple |
@danielnelson can you review the request. I wasnt able to remove the diff in telegraf conf file. I dont see any difference in my file locally. |
Thanks, this will be in 1.7.0. |
Required for all PRs: