Remove userinfo from url tag in prometheus input (#3743)
This commit is contained in:
committed by
Daniel Nelson
parent
be688ec761
commit
b7a68eef56
@@ -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"},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user