Skip to content

Commit 7f6669e

Browse files
committed
source/system: Add reading product name information
1 parent c07f71e commit 7f6669e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/usage/customization-guide.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,7 @@ The following features are available for matching:
10271027
| | | **`<parameter>`** | string | One parameter from `/etc/os-release` |
10281028
| **`system.dmiid`** | attribute | | | DMI identification data from `/sys/devices/virtual/dmi/id/` |
10291029
| | | **`sys_vendor`** | string | Vendor name from `/sys/devices/virtual/dmi/id/sys_vendor` |
1030+
| | | **`product_name`** | string | Product name from `/sys/devices/virtual/dmi/id/product_name` |
10301031
| **`system.name`** | attribute | | | System name information |
10311032
| | | **`nodename`** | string | Name of the kubernetes node object |
10321033
| **`usb.device`** | instance | | | USB devices present in the system |

source/system/system.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (s *systemSource) Discover() error {
103103
}
104104

105105
// Get DMI ID attributes
106-
dmiIDAttributeNames := []string{"sys_vendor"}
106+
dmiIDAttributeNames := []string{"sys_vendor", "product_name"}
107107
dmiAttrs := make(map[string]string)
108108
for _, name := range dmiIDAttributeNames {
109109
val, err := getDmiIDAttribute(name)

0 commit comments

Comments
 (0)