feat: add nginx-ingress ServiceMonitor for gateway traffic metrics
This commit is contained in:
@@ -18,5 +18,6 @@ resources:
|
|||||||
- servicemonitors/authentik.yaml
|
- servicemonitors/authentik.yaml
|
||||||
- servicemonitors/forgejo.yaml
|
- servicemonitors/forgejo.yaml
|
||||||
- servicemonitors/minio.yaml
|
- servicemonitors/minio.yaml
|
||||||
|
- servicemonitors/ingress-nginx.yaml
|
||||||
- dashboards/cluster-infrastructure.yaml
|
- dashboards/cluster-infrastructure.yaml
|
||||||
- dashboards/api-gateway.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
|
||||||
Reference in New Issue
Block a user