-
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
use outputs.file plugin write data to virtio-serial fail #4223
Comments
I've never used virtio-serial, but it looks like it might be challenging to get working reliably. It appears that writes block if no one is listening, and socat
So it seems like you would need to have socat on a loop in the host and if it went down Telegraf flush would block, which will cause a lot of errors due to #2919 For reconnections, I think you might need to make sure socat is not closing the socket on shutdown. Try this (just based on reading the manpage):
|
Sorry, late reply. I use I just use And if program stop long time, i start program and restart telegraf on the Windows later, logs :
I don't know more information about virtio-serial. |
Hi, @danielnelson I found error is not caused by telegraf. On my host, there are two vm, libvirt virtio-serial name both org.qemu.guest_agent.0. I change one vm virtio-serial name org.qemu.guest_agent.1, different from the other. When i reproduce, no errors. Thanks for your help. This issue can close. |
Relevant telegraf.conf:
Linux:
Windows:
System info:
[Include Telegraf version, operating system name, and other relevant details]
Telegraf v1.6.2 (git: release-1.6 1fb4283)
virtual machine os:
virtual machine host: CentOS Linux release 7.2.1511 (Core)
Steps to reproduce:
socat - UNIX-CONNECT:/var/lib/libvirt/qemu/org.qemu.guest_agent.0.<uuid>.sock
command, listen socketCtrl+c
stop socat command, telegraf still runningExpected behavior:
When run socat command again, socat can get metrics from virtio-serial socket.
Actual behavior:
socat not get any metrics.
Additional info:
Telegraf linux logs:
Telegraf windows logs:
If socat command running before telegraf running, it's ok! But if not, it's wrong.
I don't know if use telegraf outputs.file write data to virtio-serial correct? if it not right, which output plugin can use in my case. Someone can help me? thanks.
The text was updated successfully, but these errors were encountered: