small snmp-related changes (#20603)
Ilya Mashchenko committed
Jun 30, 2025 at 13:45 UTC
a8aa1dcb6b56f97cd02a9bff48b84ecf79cd5a52
2 files changed
+3
-3
src/go/plugin/go.d/collector/snmp/collect_profiles.go
+1
-1
@@ -77,7 +77,7 @@ func (c *Collector) collectProfileTableMetrics(mx map[string]int64, pms []*ddsnm
77
78
if len(m.Mappings) == 0 {
79
id := fmt.Sprintf("snmp_device_prof_%s", key)
80
- mx[id] = m.Value
80
+ mx[id] += m.Value
81
} else {
82
for k, v := range m.Mappings {
83
id := fmt.Sprintf("snmp_device_prof_%s_%s", key, v)
src/go/plugin/go.d/config/go.d/snmp.profiles/default/_generic-host-resources-base.yaml
+2
-2
@@ -60,7 +60,7 @@ metrics:
60
symbols:
61
- OID: 1.3.6.1.2.1.25.2.3.1.5
62
name: hrStorageSize
63
- description: The size of the storage represented by this entry, in units of hrStorageAllocationUnits.
63
+ description: Total size of the storage area
64
family: Storage/Total
65
unit: "By"
66
transform: |
@@ -69,7 +69,7 @@ metrics:
69
{{- setValue .Metric (mul .Metric.Value $factor) -}}
70
- OID: 1.3.6.1.2.1.25.2.3.1.6
71
name: hrStorageUsed
72
- description: The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits.
72
+ description: Amount of storage used
73
family: Storage/Used
74
unit: "By"
75
transform: |