Skip to content

Commit

Permalink
Add prometheus annotations to net-kourier (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Anderson authored Jan 21, 2023
1 parent 6a2571e commit 819b72f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/300-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ spec:
app: net-kourier-controller
template:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9090"
prometheus.io/path: "/metrics"
labels:
app: net-kourier-controller
spec:
Expand Down
3 changes: 3 additions & 0 deletions config/300-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ spec:
# v0.26 supports envoy v3 API, so
# adding this label to restart pod.
networking.knative.dev/poke: "v0.26"
prometheus.io/scrape: "true"
prometheus.io/port: "9000"
prometheus.io/path: "/stats/prometheus"
spec:
containers:
- args:
Expand Down

0 comments on commit 819b72f

Please sign in to comment.