From 14bf10a1954e51149a55bcc9f6c0ec3414bd868a Mon Sep 17 00:00:00 2001 From: Kebe Date: Wed, 24 Jul 2019 17:28:39 +0800 Subject: [PATCH] Fix metrics proxy port (#15807) --- istioctl/cmd/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }