-
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
Telegraf config for parsing Juniper UDP / Protobuf (dial-out) data #15571
Comments
Hello! I recommend posting this question in our Community Slack or Community Forums, we have a lot of talented community members there who could help answer your question more quickly. You can also learn more about Telegraf by enrolling at InfluxDB University for free! Heads up, this issue will be automatically closed after 7 days of inactivity. Thank you! |
Thanks @jryburn! Will take a look... |
@jryburn sorry for the late feedback! I tracked the issue down to the usage of "extensions" in the protocol buffer which is currently not handled by the underlying parser library. Want to let you know that I'm working on a solution but that might take a bit... |
@jryburn please test the binary in PR #15586, available as soon as CI finished the tests, and let me know if this fixes the issue. I've used xpath_print_document = true
xpath_native_types = true
xpath_protobuf_files = ["telemetry_top.proto", "port.proto"]
xpath_protobuf_type = "TelemetryStream"
xpath_protobuf_import_paths = [".", "./testcases/protobuf_issue_15571"]
[[inputs.file.xpath]]
metric_name = "'test'"
field_selection = "* | //if_name"
field_name_expansion = true
timestamp = "//timestamp"
timestamp_format = "unix_ms" during tests. It is important to specify all used extensions in |
This is working great. I will play around and grab the metrics I need from here. Thanks! |
@jryburn thanks for testing! Please keep the issue open until we merged the PR, which will close the issue automatically. This helps us to keep track of what is open and also helps others to find the issue more easily in cause they encounter similar problems. |
Please direct all support questsions to slack or the forums. Thank you.
I had a thread going over on the community site here.
I cannot seem to get the
socket_listener
plugin to properly decode the stream telemetry (dial-out) UDP protobuf data I am getting from a Juniper virtual switch. Here is a zipfile that contains the following:protoc --decode TelemetryStream port.proto -I /usr/include/protos -I /usr/include/google/protobuf < /tmp/data.gpb > /tmp/data.json
)Archive.zip
Here is my telegraf.conf file:
The resulting output from the
xpath_print_document = true
is:The proto files in the
/usr/include/protos
directory come from here. The proto files in the/usr/include/google/protobuf
directory come from here.The text was updated successfully, but these errors were encountered: