Skip to content

Commit bcb6124

Browse files
committed
Remove metrics configuration from ingress-nginx values.yaml and add VMServiceScrape for monitoring the ingress-nginx controller.
1 parent 01a3cab commit bcb6124

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

infra/ingress-nginx/values.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
controller:
22
kind: DaemonSet
3-
metrics:
4-
enabled: true
5-
serviceMonitor:
6-
additionalLabels:
7-
release: "kube-prometheus-stack"
8-
enabled: true
93
watchIngressWithoutClass: "true"
104
ingressClassResource:
115
default: "true"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: operator.victoriametrics.com/v1beta1
2+
kind: VMServiceScrape
3+
metadata:
4+
name: ingress-nginx-controller
5+
spec:
6+
endpoints:
7+
- interval: 30s
8+
port: metrics
9+
namespaceSelector:
10+
matchNames:
11+
- ingress-nginx
12+
selector:
13+
matchLabels:
14+
app.kubernetes.io/component: controller
15+
app.kubernetes.io/instance: ingress-nginx
16+
app.kubernetes.io/name: ingress-nginx

0 commit comments

Comments
 (0)