chore(go.d/snmp): add _net_default_iface_ip host label (#20768)
Ilya Mashchenko committed
Aug 6, 2025 at 11:11 UTC
b7f5994361f2cab896e1e3df6a1013abb05c0841
1 file changed
+3
-2
src/go/plugin/go.d/collector/snmp/collect.go
+3
-2
@@ -118,8 +118,9 @@ func (c *Collector) setupVnode(si *snmpsd.SysInfo, deviceMeta map[string]map[str
118
c.Vnode.Hostname = hostnames[i]
119
120
labels := map[string]string{
121
- "_vnode_type": "snmp",
122
- "address": c.Hostname,
121
+ "_vnode_type": "snmp",
122
+ "_net_default_iface_ip": c.Hostname,
123
+ "address": c.Hostname,
124
}
125
126
maps.Copy(labels, c.Vnode.Labels)