feat: add nginx-ingress ServiceMonitor for gateway traffic metrics

This commit is contained in:
2026-09-04 23:07:44 -07:00
parent 823d5c6a3f
commit 60bdd16a66
2 changed files with 19 additions and 0 deletions
+1
View File
@@ -18,5 +18,6 @@ resources:
- servicemonitors/authentik.yaml
- servicemonitors/forgejo.yaml
- servicemonitors/minio.yaml
- servicemonitors/ingress-nginx.yaml
- dashboards/cluster-infrastructure.yaml
- dashboards/api-gateway.yaml
@@ -0,0 +1,18 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: ingress-nginx
namespace: monitoring
labels:
release: prometheus
spec:
namespaceSelector:
matchNames:
- ingress-nginx
selector:
matchLabels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/component: controller
endpoints:
- port: metrics
interval: 30s