@cryptotaxi247 / netdata / commits / 92d7c851a

improve(go.d/snmp): add SNMP- prefix for vnode hostname (#20512)

Ilya Mashchenko committed Jun 18, 2025 at 14:02 UTC 92d7c851a354f93cd3f39e0e3653f8833d5e2f5b
1 file changed +1 -1
src/go/plugin/go.d/collector/snmp/collect.go
+1 -1
@@ -92,7 +92,7 @@ func (c *Collector) setupVnode(si *snmpsd.SysInfo) *vnodes.VirtualNode {
92 hostnames := []string{c.Vnode.Hostname, si.Name, "snmp-device"}
93 i := slices.IndexFunc(hostnames, func(s string) bool { return s != "" })
94
95 - c.Vnode.Hostname = fmt.Sprintf("%s(%s)", hostnames[i], c.Hostname)
95 + c.Vnode.Hostname = fmt.Sprintf("SNMP-%s(%s)", hostnames[i], c.Hostname)
96
97 labels := make(map[string]string)
98