fingerprint kernel architecture name (#13182)

This commit is contained in:
Shantanu Gadgil 2022-06-03 01:21:00 +05:30 committed by GitHub
parent 0399b7e4c5
commit 6cb8c95534
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

3
.changelog/13182.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:improvement
fingerprint: add support for detecting kernel architecture of clients. (attribute: `kernel.arch`)
```

View File

@ -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)

View File

@ -212,6 +212,14 @@ Below is a table documenting common node properties:
allocated
</td>
</tr>
<tr>
<td>
<code>{'${attr.kernel.arch}'}</code>
</td>
<td>
Kernel architecture of the client (e.g. <code>x86_64</code>, <code>aarch64</code>)
</td>
</tr>
<tr>
<td>
<code>{'${attr.kernel.name}'}</code>