-
Notifications
You must be signed in to change notification settings - Fork 215
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
Missing EndpointUrl in telemetry format #1385
Comments
Hi @alevincenzi, thank you for bringing up these topics. Firstly, our documentation is a bit misleading, I would highly recommend you take the guthub documentation as reference and not the docs.microsoft.com. Particularly for the telemetry format, please have a look here: https://github.com/Azure/Industrial-IoT/blob/main/docs/dev-guides/telemetry-messages-format.md. The default --mm is "Samples". If you need the endpoint url to be part of the telemetry, then you need to enable the so called "fullfeaturedmessage" using "--fm=true" argument. Default is set to false. Regarding the --mm=Samples vs -mm=PubSub, works fine for me. Would you mind giving it another try? |
Hello @cristipogacean thank you for the reply and for pointing out the good documentation. Yes, we gave it a second try. With the option (extracted from the deployment manifest)
we get messages like these
and we deduce that the defaults are "Samples" messages without the "full featured payload". They are both the default behaviour. With the options
we see
which means that the full featured messages is on. So far so good. Last, with this option
we get back to messages without full payload
Is there a problem in the "long version" of the command line? This is visible also if we use the long version of the --mm option, as I mentioned above. When I opened this issue I used the short for simplicity without knowing that there was a problem behind. Moreover, i had a look to this source code and the default is told to be "True". Is there a problem in the description too? Thanks |
Hello @alevincenzi, Indeed I can replicate the issue with --fullfeaturedmessage=true. This seem to be a bug related to string lowercase comparison of the arguments name since the --FullFeaturedMessage=true works fine. As you said, the same issue might be the issue with other arguments you have been using. We will fix this long-names issue as well as the default mismatch in the documentation of the --fullfeaturedmessage. Thank you for taking the time to go to the bottom of this issue! |
Hello! thank you for he update. We'll be waiting for the next release. As for today, we are gong to use the command line options in short format. Regarding the other open points about the payload, The missing MonitoredItem is not a problem. I reported it just to list the differences with the documentation. The expansion of the NodeId can be problematic for us. We use the DisplayName whenever possible and we put it in the configuration of the publisher (--pn=node.json). This way the publisher puts it in the telemetry sent as output. If the display name is not set by "our users", we use the nodeId to identify the opc node but with the 2.8.0 the nodeId does not match the one in the configuration. It changes from Thanks. |
* when publisher CLI arguments are provided as longnames, they with config settings ending up being ignoded. The issue is fixed now by changing the order of progessing the arguments. * correction ot the default value of fullfeaturedmessage argument
* When publisher CLI arguments are provided as long names, they with config settings ending up being ignored. The issue is fixed now by changing the order of processing the arguments. * Correction of the default value of `fullfeaturedmessage` argument
* When publisher CLI arguments are provided as long names, they with config settings ending up being ignored. The issue is fixed now by changing the order of processing the arguments. * Correction of the default value of `fullfeaturedmessage` argument
fixed in main branch |
Describe the bug
With opcuaPublsher:2.8.0, the telemetry output (json) does not match the online documentation.
Moreover, changes in the command line option
--mm
has no effect on the telemetry messages.To Reproduce
docker run --rm -it -p 50000:50000 -p 8086:8086 --name opcplc mcr.microsoft.com/iotedge/opc-plc:latest --pn=50000 --autoaccept --sph --sn=5 --sr=10 --st=uint --fn=5 --fr=1 --ft=uint --ctb --scn --lid --lsn --ref--gn=5
--mm
!$upstream
pn.json
file with some nodes:The telemetry messages will show up as follow
Expected behavior
The messages should look like those in the documentation page "https://docs.microsoft.com/en-us/azure/industrial-iot/reference-opc-publisher-telemetry-format".
The documentation page does not report which messaging model is used as default. It looks like "Samples" format but
pn.json
Moreover, if you run the publisher with
--mm=Samples
or-mm=PubSub
the output does not change.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: