Skip to content

Commit 3c1c05f

Browse files
committed
Add metric series to track custom hostnames defined on HTTPProxies and Gateways.
1 parent 016442d commit 3c1c05f

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

config/resource-metrics/gateways.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ spec:
5151
labelsFromPath:
5252
type: ["type"]
5353
valueFrom: ["status"]
54+
- name: "custom_hostname"
55+
help: "Custom hostname defined on the gateway"
56+
errorLogV: 10
57+
each:
58+
type: Info
59+
info:
60+
path: [spec,listeners]
61+
labelsFromPath:
62+
hostname: [hostname]
63+
5464
- groupVersionKind:
5565
group: gateway.networking.k8s.io
5666
kind: "HTTPRoute"

config/resource-metrics/httpproxies.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,12 @@ spec:
5252
reason: [reason]
5353
status: [status]
5454
valueFrom: [status]
55+
- name: "custom_hostname"
56+
help: "Custom hostname defined on the proxy"
57+
errorLogV: 10
58+
each:
59+
type: Info
60+
info:
61+
path: [spec,hostnames]
62+
labelsFromPath:
63+
hostname: []

0 commit comments

Comments
 (0)