You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/analyze.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ var analyzeCmd = &cobra.Command{
52
52
returnerr
53
53
}
54
54
// port-forward prometheus asynchronously and wait for it to be ready
55
-
goanalyzerProm.PortForwardProm()
55
+
goanalyzerProm.PortForwardProm(namespace)
56
56
iferr:=analyzerProm.WaitForProm(); err!=nil {
57
57
returnerr
58
58
}
@@ -86,6 +86,6 @@ func init() {
86
86
rootCmd.PersistentFlags().StringVar(&pricePath, "pricePath", "", "if custom egress rates are provided, dapani will use the rates in this file.")
87
87
rootCmd.PersistentFlags().StringVar(&queryBefore, "queryBefore", "0s", "if provided a time duration (go format), dapani will only use data from that much time ago and before.")
88
88
rootCmd.PersistentFlags().BoolVar(&details, "details", false, "if true, tool will provide a more detailed view of egress costs, including both destination and source")
89
-
rootCmd.PersistentFlags().StringVar(&namespace, "namespace", "default", "analyze the cost of a certain namespace")
89
+
rootCmd.PersistentFlags().StringVar(&namespace, "promNamespace", "istio-system", "namespace that the prometheus pod lives in")
0 commit comments