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
Add deprecation notice on metrics port in runner and datastore (#1886)
* add deprecation notice on metrics port in runner and datastore
Signed-off-by: Etai Lev Ran <[email protected]>
* simplify deprecated flags function
Signed-off-by: Etai Lev Ran <[email protected]>
---------
Signed-off-by: Etai Lev Ran <[email protected]>
Copy file name to clipboardExpand all lines: cmd/epp/runner/runner.go
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -139,8 +139,9 @@ var (
139
139
configFile=flag.String("config-file", runserver.DefaultConfigFile, "The path to the configuration file")
140
140
configText=flag.String("config-text", runserver.DefaultConfigText, "The configuration specified as text, in lieu of a file")
141
141
142
-
modelServerMetricsPort=flag.Int("model-server-metrics-port", 0, "Port to scrape metrics from pods. "+
143
-
"Default value will be set to the InferencePool.Spec.TargetPorts[0].Number if not set.")
142
+
modelServerMetricsPort=flag.Int("model-server-metrics-port", 0, "[DEPRECATED] Port to scrape metrics from pods. "+
143
+
"Default value will be set to the InferencePool.Spec.TargetPorts[0].Number if not set."+
144
+
"This option will be removed in the next release.")
144
145
modelServerMetricsPath=flag.String("model-server-metrics-path", "/metrics", "Path to scrape metrics from pods")
145
146
modelServerMetricsScheme=flag.String("model-server-metrics-scheme", "http", "Scheme to scrape metrics from pods")
146
147
modelServerMetricsHttpsInsecureSkipVerify=flag.Bool("model-server-metrics-https-insecure-skip-verify", true, "When using 'https' scheme for 'model-server-metrics-scheme', configure 'InsecureSkipVerify' (default to true)")
0 commit comments