-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
host.id
resource auto-detection
#3811
Labels
enhancement
New feature or request
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem Statement
I would like to be able collect
host.id
for non-containerized environments.Proposed Solution
There is currently a spec PR: open-telemetry/opentelemetry-specification#3173 that proposes using the following sources to collect
host.id
per platform:/etc/machine-id
/var/lib/dbus/machine-id
/etc/hostid
kenv -q smbios.system.uuid
IOPlatformUUID
line from the output ofioreg -rd1 -c "IOPlatformExpertDevice"
MachineGuid
from registryHKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography
Alternatives
We could use off the shelf libraries, although they differ in implementation from what is specified. It would also be a dependency we do not control.
Prior Art
Similar libraries:
This is the JS implementation of the spec proposal:
open-telemetry/opentelemetry-js#3575
Here is a PR that attempts to address the same problem in the collector (using gopsutil):
open-telemetry/opentelemetry-collector-contrib#18740
Additional Context
I have an implementation that I will open as a PR shortly. Please assign this issue to me.
The text was updated successfully, but these errors were encountered: