Remove userinfo from url tag in prometheus input (#3743)

This commit is contained in:
Philipp Weber
2018-02-05 20:16:00 +01:00
committed by Daniel Nelson
parent be688ec761
commit b7a68eef56
4 changed files with 42 additions and 34 deletions

View File

@@ -37,7 +37,7 @@ func TestPrometheusGeneratesMetrics(t *testing.T) {
defer ts.Close()
p := &Prometheus{
Urls: []string{ts.URL},
URLs: []string{ts.URL},
}
var acc testutil.Accumulator
@@ -89,7 +89,7 @@ func TestPrometheusGeneratesMetricsAlthoughFirstDNSFails(t *testing.T) {
defer ts.Close()
p := &Prometheus{
Urls: []string{ts.URL},
URLs: []string{ts.URL},
KubernetesServices: []string{"http://random.telegraf.local:88/metrics"},
}