@@ -73,7 +73,6 @@ const (
7373 inlineConfiguration = "configuration"
7474 configurationFile = "configuration-file"
7575 tracingFlag = "tracing"
76- metricsPortFlag = "metrics-port"
7776
7877 // Deprecated flags
7978 connector = "connector"
@@ -93,7 +92,6 @@ const (
9392 defaultVLLMPort = "8001"
9493 defaultDataParallelSize = 1
9594 defaultMooncakeBootstrapPort = 8998
96- defaultMetricsPort = 9090
9795
9896 // TLS stages
9997 prefillStage = "prefiller"
@@ -127,7 +125,6 @@ type yamlConfiguration struct {
127125 PrefillRetryBackoff string `json:"prefill-retry-backoff,omitempty"`
128126 DecodeChunkSize int `json:"decode-chunk-size,omitempty"`
129127 Tracing * bool `json:"tracing,omitempty"`
130- MetricsPort * int `json:"metrics-port,omitempty"`
131128}
132129
133130// Options holds the CLI-facing configuration for the pd-sidecar proxy.
@@ -216,7 +213,6 @@ func NewOptions() *Options {
216213 PoolGroup : routing .InferencePoolAPIGroup ,
217214 DecodeChunkSize : 0 ,
218215 Tracing : false ,
219- MetricsPort : defaultMetricsPort ,
220216 // MoRI-IO defaults: off, preserving existing NIXLv2 behaviour.
221217 // Port defaults match vLLM's MoRI-IO connector defaults.
222218 MoRIIOWriteMode : false ,
@@ -266,7 +262,6 @@ func (opts *Options) AddFlags(fs *pflag.FlagSet) {
266262 fs .StringVar (& opts .PoolGroup , poolGroup , opts .PoolGroup , "group of the InferencePool this Endpoint Picker is associated with." )
267263 fs .IntVar (& opts .DecodeChunkSize , decodeChunkSize , opts .DecodeChunkSize , "enables chunked decode mode when > 0; value is the token budget per chunk. For best performance should be a multiple of the block size." )
268264 fs .BoolVar (& opts .Tracing , tracingFlag , opts .Tracing , "Enable OpenTelemetry tracing" )
269- fs .IntVar (& opts .MetricsPort , metricsPortFlag , opts .MetricsPort , "the port the Prometheus /metrics endpoint listens on (0 disables it)" )
270265
271266 // MoRI-IO WRITE-mode flags. Only meaningful with --kv-connector=nixlv2
272267 // against vLLM engines running MoRI-IO in WRITE mode.
@@ -551,11 +546,6 @@ func (opts *Options) Validate() error {
551546 return fmt .Errorf ("--mooncake-bootstrap-port must be between 1 and 65535, got %d" , opts .MooncakeBootstrapPort )
552547 }
553548
554- // Validate metrics port (0 disables the metrics server)
555- if opts .MetricsPort < 0 || opts .MetricsPort > 65535 {
556- return fmt .Errorf ("--metrics-port must be between 0 and 65535 (0 disables it), got %d" , opts .MetricsPort )
557- }
558-
559549 // Validate SSRF protection requirements
560550 if opts .EnableSSRFProtection {
561551 if opts .InferencePoolNamespace == "" || opts .InferencePoolName == "" {
@@ -647,9 +637,6 @@ func (opts *Options) mergeYAMLConfiguration(cfg yamlConfiguration) {
647637 if cfg .MooncakeBootstrapPort != 0 && ! opts .isFlagSet (mooncakeBootstrapPortFlag ) {
648638 opts .MooncakeBootstrapPort = cfg .MooncakeBootstrapPort
649639 }
650- if cfg .MetricsPort != nil && ! opts .isFlagSet (metricsPortFlag ) {
651- opts .MetricsPort = * cfg .MetricsPort
652- }
653640 if cfg .DataParallelSize != 0 && ! opts .isFlagSet (dataParallelSize ) {
654641 opts .DataParallelSize = cfg .DataParallelSize
655642 }
0 commit comments