upd generic check in snmp prof metrics deduplication (#20521)
Ilya Mashchenko committed
Jun 19, 2025 at 08:34 UTC
defbb134ff7c593ca450fb3ee35c56b888f4195b
1 file changed
+1
-2
src/go/plugin/go.d/collector/snmp/ddsnmp/profile.go
+1
-2
@@ -275,7 +275,6 @@ func loadProfileExtensions(profile *Profile, dir string, processedExtends map[st
275
}
276
277
func getProfilesDir() string {
278
- //return "/Users/ilyam/Projects/github/ilyam8/netdata/src/go/plugin/go.d/config/go.d/snmp.profiles/default"
278
if executable.Name == "test" {
279
dir, _ := filepath.Abs("../../../config/go.d/snmp.profiles/default")
280
return dir
@@ -325,7 +324,7 @@ func deduplicateMetricsAcrossProfiles(profiles []*Profile) {
324
for i, prof := range profiles {
325
indexed[i] = indexedProfile{
326
idx: i,
328
- isGeneric: strings.Contains(strings.ToLower(prof.SourceFile), "generic-"),
327
+ isGeneric: strings.Contains(strings.ToLower(prof.SourceFile), "generic"),
328
}
329
}
330