diff --git a/docs/book/provider_implementations/register_schemes.md b/docs/book/provider_implementations/register_schemes.md index b64785941faa..08d42988ed66 100644 --- a/docs/book/provider_implementations/register_schemes.md +++ b/docs/book/provider_implementations/register_schemes.md @@ -48,13 +48,15 @@ func main() { panic(fmt.Errorf("GetConfigOrDie didn't die")) } + metricsAddr := flag.String("metrics-addr", ":8080", "The address the metric endpoint binds to.") flag.Parse() + log := logf.Log.WithName("solas-controller-manager") logf.SetLogger(logf.ZapLogger(false)) entryLog := log.WithName("entrypoint") // Setup a Manager - mgr, err := manager.New(cfg, manager.Options{}) + mgr, err := manager.New(cfg, manager.Options{MetricsBindAddress: *metricsAddr}) if err != nil { entryLog.Error(err, "unable to set up overall controller manager") os.Exit(1)