Skip to content
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

fingerprint kernel architecture name #13182

Merged
merged 9 commits into from
Jun 2, 2022
3 changes: 3 additions & 0 deletions .changelog/13182.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
fingerprint: add support for detecting kernel architecture of clients. (attribute: `kernel.arch`)
```
1 change: 1 addition & 0 deletions client/fingerprint/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 8 additions & 0 deletions website/content/docs/runtime/interpolation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down