Skip to content

Commit

Permalink
[Addon] ingress-nginx enable metrics (#650)
Browse files Browse the repository at this point in the history
* enable metrics

Signed-off-by: wangyike.wyk <[email protected]>

* delete useless file

Signed-off-by: wangyike.wyk <[email protected]>

---------

Signed-off-by: wangyike.wyk <[email protected]>
  • Loading branch information
wangyikewxgm authored Mar 1, 2023
1 parent 0739943 commit a40d216
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/ingress-nginx/metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ingress-nginx
version: 1.1.0
version: 1.1.1
description: gateway for serving ingress traffic

tags:
Expand Down
9 changes: 8 additions & 1 deletion addons/ingress-nginx/resources/ingress-nginx.cue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ nginxIngress: {
chart: "ingress-nginx"
version: "4.2.0"
values: {
controller: service: type: parameter["serviceType"]
controller: {
service: type: parameter["serviceType"]
metrics: enabled: "true"
podAnnotations: {
"prometheus.io/scrape": "true"
"prometheus.io/port": "10254"
}
}
}
}
}

0 comments on commit a40d216

Please sign in to comment.