diff --git a/config/config.go b/config/config.go index 9466a2d7cc..ee088fe99b 100644 --- a/config/config.go +++ b/config/config.go @@ -728,7 +728,7 @@ func (tg *TargetGroup) UnmarshalYAML(unmarshal func(interface{}) error) error { }) } tg.Labels = g.Labels - return checkOverflow(g.XXX, "target_group") + return checkOverflow(g.XXX, "static_config") } // MarshalYAML implements the yaml.Marshaler interface. diff --git a/discovery/file/file_test.go b/discovery/file/file_test.go index 39ce91f476..fb10fa9dd7 100644 --- a/discovery/file/file_test.go +++ b/discovery/file/file_test.go @@ -60,7 +60,7 @@ func testFileSD(t *testing.T, ext string) { } defer newf.Close() - f, err := os.Open("fixtures/target_groups" + ext) + f, err := os.Open("fixtures/valid" + ext) if err != nil { t.Fatal(err) } diff --git a/discovery/file/fixtures/target_groups.json b/discovery/file/fixtures/valid.json similarity index 100% rename from discovery/file/fixtures/target_groups.json rename to discovery/file/fixtures/valid.json diff --git a/discovery/file/fixtures/target_groups.yml b/discovery/file/fixtures/valid.yml similarity index 100% rename from discovery/file/fixtures/target_groups.yml rename to discovery/file/fixtures/valid.yml