diff --git a/.changelog/13182.txt b/.changelog/13182.txt new file mode 100644 index 00000000000..31d0e9d03d4 --- /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 f7b82982dea..4d37d091d07 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 3c211412471..b9f852258e5 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}'}
+ x86_64
, aarch64
)
+ {'${attr.kernel.name}'}