-
Notifications
You must be signed in to change notification settings - Fork 2.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
Collector fails to start when system
detector cannot obtain FQDN of the host
#3092
Comments
system
fails if fully qualified hostname cannot be obtainedsystem
detector cannot obtain FQDN of the host
This sounds right to me given that Otel conventions say:
Regarding your second point:
Yes, we can do it in the future if necessary. For now I would suggest to go with option 1. |
I opened #3099 to fix this using option 1, PTAL |
open-telemetry#3099) - Fall back to `os.Hostname` when FQDN is not available. **Link to tracking Issue:** Fixes open-telemetry#3092
Problem description
If we have OTel Collector with
system
detector enabled (resource detection processor), running on a VM that cannot provide fully qualified domain name for a reason, the collector is failing to start. The detector tries to set FQDN tohost.name
resource attribute, but OTel conventions don't specify that it has to be FQDN. So I don't see a reason why it should be failing.Suggested solutions
I see two options to solve the problem:
os.Hostname()
host.fqdm
which (if present) will always contain fully qualified domain name of the host.@jrcamp @mx-psi @tigrannajaryan thoughts?
The text was updated successfully, but these errors were encountered: