MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.2k stars 21.34k forks source link

how to choose telemetry format #93867

Open lucarv opened 2 years ago

lucarv commented 2 years ago

[Enter feedback here] Not sure if this is only a documentation problem....

This document states that you can choose between two different types of format. It does not say HOW or points out to any documentation that does. There is an env --tc that supposedly does that but I could not find what are the VALUE alternatives (supposedly it is an enumerated type). The second format points makes it available to a product that has been retired. When I run the publisher 2.8.2 from the appstore using the defaults, i don't get either, i get instead a totally different format, as below:

[IoTHubMonitor] [4:34:29 PM] Message received from [vaasa-luca/publisher]:
[
  {
    "NodeId": "ns=1;s=torque",
    "EndpointUrl": "opc.tcp://lucaplcsim.northeurope.azurecontainer.io:48000/UA/lucaPLC",
    "DisplayName": "Torque",
    "Value": {
      "Value": 0.8609156770655273,
      "SourceTimestamp": "2022-06-02T14:34:21.8619058Z"
    }
  },
  {
    "NodeId": "ns=1;s=torque",
    "EndpointUrl": "opc.tcp://lucaplcsim.northeurope.azurecontainer.io:48000/UA/lucaPLC",
    "DisplayName": "Torque",
    "Value": {
      "Value": 0.2993917163261417,
      "SourceTimestamp": "2022-06-02T14:34:26.8654329Z"
    }
  }
]

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

AshokPeddakotla-MSFT commented 2 years ago

@lucarv Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.