Skip to content

Commit e960426

Browse files
adding samples
1 parent 348074d commit e960426

File tree

2 files changed

+797
-0
lines changed

2 files changed

+797
-0
lines changed

collector/system_collector.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ func (s *SystemCollector) Collect(ch chan<- prometheus.Metric) {
298298
} else {
299299
processed := make(map[string]bool)
300300
wg5.Add(len(pcieDevices))
301+
//Some devices are returning duplicated PCIeDevices. This is workaround for this. Example of such data can be found in sampleOut/system_duplicated_devices.json
301302
for _, pcieDevice := range pcieDevices {
302303
_, exists := processed[pcieDevice.ODataID]
303304
if exists {

0 commit comments

Comments
 (0)