Skip to content

Commit

Permalink
use constant
Browse files Browse the repository at this point in the history
  • Loading branch information
anusha-ctrl committed Jul 20, 2023
1 parent 85cc2f8 commit ea1e609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/simulator/load/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func ExecuteLoader(ctx context.Context, config config.Config) error {
}()

http.Handle("/metrics", promhttp.HandlerFor(reg, promhttp.HandlerOpts{Registry: reg}))
log.Info("Metrics Server: localhost:8082/metrics")
log.Info(fmt.Sprintf("Metrics Server: localhost%s/metrics", MetricsPort))
if err := server.ListenAndServe(); !errors.Is(err, http.ErrServerClosed) {
log.Error("Metrics server error: %v", err)
}
Expand Down

0 comments on commit ea1e609

Please sign in to comment.