Totally revamp cluster chart configs
This commit is contained in:
23
charts/prometheus/ingress-nginx-servicemonitor.yaml
Normal file
23
charts/prometheus/ingress-nginx-servicemonitor.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
labels:
|
||||
app: nginx-ingress
|
||||
release: prometheus-operator # required by Prometheus CRD
|
||||
name: nginx-ingress
|
||||
namespace: kube-system
|
||||
spec:
|
||||
endpoints:
|
||||
- interval: 15s
|
||||
port: metrics
|
||||
jobLabel: app
|
||||
selector:
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- nginx-ingress
|
||||
- key: component
|
||||
operator: In
|
||||
values:
|
||||
- controller
|
||||
Reference in New Issue
Block a user