Skip to content

Commit

Permalink
fix(metrics): run metrics on 0.0.0.0 ip address
Browse files Browse the repository at this point in the history
Running metrics on 0.0.0.0 allows us to run the metrics server on the same port as the application server. This is useful for running the application in a container where the port is fixed, and we need to bind metrics server to all ip interfaces.

Signed-off-by: Dusan Malusev <[email protected]>
  • Loading branch information
CodeLieutenant committed Nov 24, 2024
1 parent 5e71bed commit 536603b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gemini/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func init() {
rootCmd.Flags().BoolVarP(&nonInteractive, "non-interactive", "", false, "Run in non-interactive mode (disable progress indicator)")
rootCmd.Flags().DurationVarP(&duration, "duration", "", 30*time.Second, "")
rootCmd.Flags().StringVarP(&outFileArg, "outfile", "", "", "Specify the name of the file where the results should go")
rootCmd.Flags().StringVarP(&bind, "bind", "b", ":2112", "Specify the interface and port which to bind prometheus metrics on. Default is ':2112'")
rootCmd.Flags().StringVarP(&bind, "bind", "b", "0.0.0.0:2112", "Specify the interface and port which to bind prometheus metrics on. Default is ':2112'")
rootCmd.Flags().DurationVarP(&warmup, "warmup", "", 30*time.Second, "Specify the warmup perid as a duration for example 30s or 10h")
rootCmd.Flags().StringVarP(
&replicationStrategy, "replication-strategy", "", "simple",
Expand Down

0 comments on commit 536603b

Please sign in to comment.