chore(go.d): remove wmi->win collector rename handling (#20166)
Ilya Mashchenko committed
Apr 23, 2025 at 14:34 UTC
3fc349a00ae7bff6876daf57060a0229021d0bfd
1 file changed
-17
src/go/plugin/go.d/agent/setup.go
-17
@@ -105,23 +105,6 @@ func (a *Agent) buildDiscoveryConf(enabled module.Registry) discovery.Config {
105
}
106
107
for name := range enabled {
108
- // TODO: properly handle module renaming
109
- // We need to announce this change in Netdata v1.39.0 release notes and then remove this workaround.
110
- // This is just a quick fix for wmi=>windows. We need to prefer user wmi.conf over windows.conf
111
- // 2nd part of this fix is in /agent/job/discovery/file/parse.go parseStaticFormat()
112
- if name == "windows" {
113
- cfgName := "wmi.conf"
114
- a.Debugf("looking for '%s' in %v", cfgName, a.CollectorsConfDir)
115
-
116
- path, err := a.CollectorsConfDir.Find(cfgName)
117
-
118
- if err == nil && strings.Contains(path, "etc/netdata") {
119
- a.Infof("found '%s", path)
120
- readPaths = append(readPaths, path)
121
- continue
122
- }
123
- }
124
-
108
cfgName := name + ".conf"
109
a.Debugf("looking for '%s' in %v", cfgName, a.CollectorsConfDir)
110