diff --git a/.changelog/13182.txt b/.changelog/13182.txt new file mode 100644 index 000000000000..31d0e9d03d40 --- /dev/null +++ b/.changelog/13182.txt @@ -0,0 +1,3 @@ +```release-note:improvement +fingerprint: add support for detecting kernel architecture of clients. (attribute: `kernel.arch`) +``` diff --git a/client/fingerprint/host.go b/client/fingerprint/host.go index f7b82982dea0..4d37d091d07d 100644 --- a/client/fingerprint/host.go +++ b/client/fingerprint/host.go @@ -30,6 +30,7 @@ func (f *HostFingerprint) Fingerprint(req *FingerprintRequest, resp *Fingerprint resp.AddAttribute("os.version", hostInfo.PlatformVersion) resp.AddAttribute("kernel.name", runtime.GOOS) + resp.AddAttribute("kernel.arch", hostInfo.KernelArch) resp.AddAttribute("kernel.version", hostInfo.KernelVersion) resp.AddAttribute("unique.hostname", hostInfo.Hostname) diff --git a/website/content/docs/runtime/interpolation.mdx b/website/content/docs/runtime/interpolation.mdx index 3c211412471b..b9f852258e5e 100644 --- a/website/content/docs/runtime/interpolation.mdx +++ b/website/content/docs/runtime/interpolation.mdx @@ -212,6 +212,14 @@ Below is a table documenting common node properties: allocated + + + {'${attr.kernel.arch}'} + + + Kernel architecture of the client (e.g. x86_64, aarch64) + + {'${attr.kernel.name}'}