Skip to content

Commit e36719e

Browse files
committed
add log
Signed-off-by: Kuromesi <[email protected]>
1 parent 67d0654 commit e36719e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pkg/epp/backend/provider.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ func (p *Provider) refreshMetricsOnce(logger logr.Logger) error {
157157
}
158158

159159
func (p *Provider) flushPrometheusMetricsOnce(logger logr.Logger) {
160-
logger.V(logutil.DEBUG).Info("Flushing Prometheus Metrics")
161-
162160
pool, _ := p.datastore.PoolGet()
163161
if pool == nil {
164162
// No inference pool or not initialize.
@@ -169,6 +167,7 @@ func (p *Provider) flushPrometheusMetricsOnce(logger logr.Logger) {
169167
var queueTotal int
170168

171169
podMetrics := p.datastore.PodGetAll()
170+
logger.V(logutil.VERBOSE).Info("Flushing Prometheus Metrics", "ReadyPods", len(podMetrics))
172171
if len(podMetrics) == 0 {
173172
return
174173
}

pkg/epp/backend/vllm/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (p *PodMetricsClientImpl) FetchMetrics(
6262

6363
// Currently the metrics endpoint is hard-coded, which works with vLLM.
6464
// TODO(https://github.com/kubernetes-sigs/gateway-api-inference-extension/issues/16): Consume this from InferencePool config.
65-
url := existing.Address + ":" + strconv.Itoa(int(port)) + "/metrics"
65+
url := "http://" + existing.Address + ":" + strconv.Itoa(int(port)) + "/metrics"
6666

6767
req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
6868
if err != nil {

0 commit comments

Comments
 (0)