Skip to content
13 changes: 13 additions & 0 deletions comp/networkpath/npcollector/impl/connfilter/connfilter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,19 @@ filters:
},
expectedErr: "",
},
{
name: "default local and internal domains excluded",
config: ``,
expectedMatches: []expectedMatch{
{domain: "printer.local", shouldMatch: false},
{domain: "foo.bar.local", shouldMatch: false},
{domain: "compute.internal", shouldMatch: false},
{domain: "foo.bar.internal", shouldMatch: false},
{domain: "local.example.com", shouldMatch: true},
{domain: "internal.example.com", shouldMatch: true},
},
expectedCustomFilterCount: 0,
},
{
name: "include all domain",
config: `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ func getDefaultConnFilters(site string, monitorIPWithoutDomain bool) []Config {
Type: FilterTypeExclude,
MatchDomain: "*.datadoghq.eu",
},
{
Type: FilterTypeExclude,
MatchDomain: "*.local",
},
{
Type: FilterTypeExclude,
MatchDomain: "*.internal",
},
}
if site != "" {
defaultConfig = append(defaultConfig, Config{
Expand Down
Loading