fix(inputs.prometheus): correctly default to 9102 port (#12282)
This commit is contained in:
parent
ede6cfb920
commit
9d5c879cac
|
|
@ -430,7 +430,7 @@ func getScrapeURL(pod *corev1.Pod, p *Prometheus) (*url.URL, error) {
|
||||||
scheme = "http"
|
scheme = "http"
|
||||||
}
|
}
|
||||||
|
|
||||||
if port == "" {
|
if port == "" || port == "0" {
|
||||||
port = "9102"
|
port = "9102"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue