Skip to content

Commit

Permalink
Merge pull request #1871 from superbrothers/dmiIDAttributeNames_produ…
Browse files Browse the repository at this point in the history
…ct_name

source/system: Add reading product name information
  • Loading branch information
k8s-ci-robot committed Sep 10, 2024
2 parents c07f71e + 7f6669e commit a8fd505
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/usage/customization-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,7 @@ The following features are available for matching:
| | | **`<parameter>`** | string | One parameter from `/etc/os-release` |
| **`system.dmiid`** | attribute | | | DMI identification data from `/sys/devices/virtual/dmi/id/` |
| | | **`sys_vendor`** | string | Vendor name from `/sys/devices/virtual/dmi/id/sys_vendor` |
| | | **`product_name`** | string | Product name from `/sys/devices/virtual/dmi/id/product_name` |
| **`system.name`** | attribute | | | System name information |
| | | **`nodename`** | string | Name of the kubernetes node object |
| **`usb.device`** | instance | | | USB devices present in the system |
Expand Down
2 changes: 1 addition & 1 deletion source/system/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (s *systemSource) Discover() error {
}

// Get DMI ID attributes
dmiIDAttributeNames := []string{"sys_vendor"}
dmiIDAttributeNames := []string{"sys_vendor", "product_name"}
dmiAttrs := make(map[string]string)
for _, name := range dmiIDAttributeNames {
val, err := getDmiIDAttribute(name)
Expand Down

0 comments on commit a8fd505

Please sign in to comment.