You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Telegraf socket_writer Plugin (built from commit 426182b) seg faults with value format when messages are received. Using the below config with with json format works fine (from 1 up to a max of about 36k mps on the test system). Switching to value causes a crash on the first message (see below scenario and output). There is no value OUTPUT FORMAT documented but log WARN or ERR message would be preferable.
user@ubuntu:~/monitoring/msg-agg/telegraf$ cat dockerfile
FROM golang:1.8.0-alpine
RUN apk update
RUN apk add --no-cache iputils ca-certificates && \
update-ca-certificates
RUN apk add git make
RUN go get github.com/influxdata/telegraf
WORKDIR $GOPATH/src/github.com/influxdata/telegraf
RUN make
EXPOSE 8094
CMD ["telegraf"]
Thanks for opening this issue. I'm not sure a value output format would make much sense because the value format doesn't have a time or measurement name.
We could use it in cases where telegraf is aggregating and we want raw unformatted data passed through. Not a deal killer though. On the other hand I think a segfault is a little user hostile even if it is not something the community wants to add support for.
Bug report
Telegraf socket_writer Plugin (built from commit 426182b) seg faults with value format when messages are received. Using the below config with with json format works fine (from 1 up to a max of about 36k mps on the test system). Switching to value causes a crash on the first message (see below scenario and output). There is no value OUTPUT FORMAT documented but log WARN or ERR message would be preferable.
Relevant telegraf.conf:
System info:
Steps to reproduce:
Expected behavior:
should work
Actual behavior:
blows up
Additional info:
When the conf format is changed to json all is well
Use case: [Why is this important (helps with prioritizing requests)]
Would be nice to be able to opt out of the JSON stuff like you can on the input side with the "value" format, or better yet a raw format.
The text was updated successfully, but these errors were encountered: