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
Support scraping metrics from target running with TLS (#1190)
* Support scraping metrics from target running with TLS
vLLM server can run with TLS and metrics scraping doesn't
work currently in that case.
Signed-off-by: Pierangelo Di Pilato <[email protected]>
* Add '--model-server-metrics-*' flags to Helm values and EPP template
Signed-off-by: Pierangelo Di Pilato <[email protected]>
* Update config/charts/inferencepool/values.yaml
Co-authored-by: Abdullah Gharaibeh <[email protected]>
* Update cmd/epp/runner/runner.go
Co-authored-by: Abdullah Gharaibeh <[email protected]>
---------
Signed-off-by: Pierangelo Di Pilato <[email protected]>
Co-authored-by: Kellen Swain <[email protected]>
Co-authored-by: Abdullah Gharaibeh <[email protected]>
Copy file name to clipboardExpand all lines: cmd/epp/runner/runner.go
+36-11Lines changed: 36 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,11 @@ package runner
18
18
19
19
import (
20
20
"context"
21
+
"crypto/tls"
21
22
"errors"
22
23
"flag"
23
24
"fmt"
25
+
"net/http"
24
26
"net/http/pprof"
25
27
"os"
26
28
@@ -145,7 +147,9 @@ var (
145
147
146
148
modelServerMetricsPort=flag.Int("model-server-metrics-port", 0, "Port to scrape metrics from pods. "+
147
149
"Default value will be set to InferencePool.Spec.TargetPortNumber if not set.")
148
-
modelServerMetricsPath=flag.String("model-server-metrics-path", "/metrics", "Path to scrape metrics from pods")
150
+
modelServerMetricsPath=flag.String("model-server-metrics-path", "/metrics", "Path to scrape metrics from pods")
151
+
modelServerMetricsScheme=flag.String("model-server-metrics-scheme", "http", "Scheme to scrape metrics from pods")
152
+
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