Add url tag only if not already set

This commit is contained in:
Daniel Nelson
2018-02-15 18:24:09 -08:00
parent 027ff4e2dd
commit 0851de714d
3 changed files with 2 additions and 9 deletions

View File

@@ -23,8 +23,7 @@ func TestHTTPwithJSONFormat(t *testing.T) {
url := fakeServer.URL + "/endpoint"
plugin := &plugin.HTTP{
URLs: []string{url},
TagURL: true,
URLs: []string{url},
}
metricName := "metricName"
p, _ := parsers.NewJSONParser(metricName, nil, nil)