diff --git a/istioctl/cmd/metrics.go b/istioctl/cmd/metrics.go index 858699ba5159..b60952868c3f 100644 --- a/istioctl/cmd/metrics.go +++ b/istioctl/cmd/metrics.go @@ -98,7 +98,7 @@ func run(c *cobra.Command, args []string) error { // only use the first pod in the list promPod := pl.Items[0] - fw, err := client.BuildPortForwarder(promPod.Name, istioNamespace, port, 9090) + fw, err := client.BuildPortForwarder(promPod.Name, istioNamespace, 0, 9090) if err != nil { return fmt.Errorf("could not build port forwarder for prometheus: %v", err) }