This PR brings support for externally (by some other service) resolved hostname. Agent will expect to find a file /opt/spm/.resolved-hostname where first line would be taken as a hostname to report in os.host tag. In case the file doesn't exist or any issues when reading it, agent falls back to its old hostname resolving logic.
This PR brings support for externally (by some other service) resolved hostname. Agent will expect to find a file /opt/spm/.resolved-hostname where first line would be taken as a hostname to report in os.host tag. In case the file doesn't exist or any issues when reading it, agent falls back to its old hostname resolving logic.