Skip to content

Commit

Permalink
fingerprint kernel architecture name (#13182)
Browse files Browse the repository at this point in the history
  • Loading branch information
shantanugadgil authored and ChaiWithJai committed Jun 3, 2022
1 parent b73a98a commit a1cbbac
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
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

0 comments on commit a1cbbac

Please sign in to comment.