Skip to content

Commit d75d58b

Browse files
committed
Fix telemetry test
1 parent cb324d3 commit d75d58b

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
kind: Gateway
2+
apiVersion: gateway.networking.k8s.io/v1
3+
metadata:
4+
name: inference-gateway
5+
spec:
6+
gatewayClassName: nginx
7+
listeners:
8+
- name: http
9+
port: 80
10+
protocol: HTTP
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
apiVersion: gateway.networking.k8s.io/v1
2+
kind: HTTPRoute
3+
metadata:
4+
name: llm-route
5+
spec:
6+
parentRefs:
7+
- group: gateway.networking.k8s.io
8+
kind: Gateway
9+
name: inference-gateway
10+
rules:
11+
- backendRefs:
12+
- group: inference.networking.k8s.io
13+
kind: InferencePool
14+
name: vllm-llama3-8b-instruct
15+
matches:
16+
- path:
17+
type: PathPrefix
18+
value: /
19+
- backendRefs:
20+
- group: inference.networking.k8s.io
21+
kind: InferencePool
22+
name: vllm-llama3-8b-instructerr
23+
matches:
24+
- path:
25+
type: PathPrefix
26+
value: /

tests/suite/telemetry_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ var _ = Describe("Telemetry test with OTel collector", Label("telemetry"), func(
9393
"SnippetsFilterCount: Int(0)",
9494
"UpstreamSettingsPolicyCount: Int(0)",
9595
"GatewayAttachedNpCount: Int(0)",
96+
"InferencePoolCount: Int(0)",
9697
"NginxPodCount: Int(0)",
9798
"ControlPlanePodCount: Int(1)",
9899
"NginxOneConnectionEnabled: Bool(false)",
99-
"InferencePoolCount: Int(0)",
100100
},
101101
)
102102
})

0 commit comments

Comments
 (0)