As stated in the Documentation there are two ways of setting host metadata: oneagentctl --set-host-property command (recommended) and
The file must be in UTF-8. But if we use oneagentctl.exe on Windows machine, it writes the file automatically in default windows encoding. See the screenshots:
After manual converting the file to UTF-8 it becomes correct:
Is it a bug?
Solved! Go to Solution.
This is very interesting and I would classify this not as a bug but maybe an oversight. Im going to raise this up to support so they are aware of this issue.
Support is reaching out to the PM Team on this
this behavior looks unexpected, we're looking into it internally.
If you want to get further updates on the case please open a support ticket or use in-product chat and refer to the ticket number APM-253054.