From 69df60e724447e3aba4905a692eafef1d36d97ea Mon Sep 17 00:00:00 2001 From: Lucas Thiesen Date: Tue, 23 May 2023 15:58:18 +0200 Subject: [PATCH] Update flags with new metric collector name Signed-off-by: Lucas Thiesen --- pkg/server/start.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/server/start.go b/pkg/server/start.go index 4ab86af..f49bf38 100644 --- a/pkg/server/start.go +++ b/pkg/server/start.go @@ -133,10 +133,10 @@ func NewCommandStartAdapterServer(stopCh <-chan struct{}) *cobra.Command { flags.DurationVar(&o.DefaultScheduledScalingWindow, "scaling-schedule-default-scaling-window", 10*time.Minute, "Default rampup and rampdown window duration for ScalingSchedules") flags.IntVar(&o.RampSteps, "scaling-schedule-ramp-steps", 10, "Number of steps used to rampup and rampdown ScalingSchedules. It's used to guarantee won't avoid reaching the max scaling due to the 10% minimum change rule.") flags.StringVar(&o.DefaultTimeZone, "scaling-schedule-default-time-zone", "Europe/Berlin", "Default time zone to use for ScalingSchedules.") - flags.StringVar(&o.ExternalRPSMetricName, "hostname-rps-metric-name", o.ExternalRPSMetricName, ""+ + flags.StringVar(&o.ExternalRPSMetricName, "external-rps-metric-name", o.ExternalRPSMetricName, ""+ "The name of the metric that should be used to query prometheus for RPS per hostname.") - flags.BoolVar(&o.ExternalRPSMetrics, "hostname-rps-metrics", o.ExternalRPSMetrics, ""+ - "whether to enable hostname RPS metric collector or not") + flags.BoolVar(&o.ExternalRPSMetrics, "external-rps-metrics", o.ExternalRPSMetrics, ""+ + "whether to enable external RPS metric collector or not") return cmd }