File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
helm-chart/csi-driver/templates Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,6 @@ helm repo add prometheus-community https://prometheus-community.github.io/helm-c
3939echo " Updating Helm repositories..."
4040helm repo update
4141
42- # Create service to export the metrics for Prometheus to scrape from the sidecars
43- echo " Applying CSI Linode Controller Metrics Service..."
44- kubectl apply -f observability/metrics/csi-linode-controller-metrics-service.yaml || true
45-
4642# Create a namespace for monitoring tools
4743echo " Creating namespace '${NAMESPACE} '..."
4844kubectl create namespace ${NAMESPACE} --dry-run=client -o yaml | kubectl apply -f -
Original file line number Diff line number Diff line change 1+ {{- if .Values.enable_metrics }}
2+ ---
13apiVersion : v1
24kind : Service
35metadata :
4- name : csi-linode-controller- metrics-10248
6+ name : csi-provisioner- metrics
57 namespace : kube-system
68 labels :
79 app : csi-linode-controller
8- service : csi-linode-controller- metrics-10248
10+ service : csi-provisioner- metrics
911 annotations :
1012 prometheus.io/scrape : ' true'
1113 prometheus.io/port : ' 10248'
@@ -22,11 +24,11 @@ spec:
2224apiVersion : v1
2325kind : Service
2426metadata :
25- name : csi-linode-controller- metrics-10249
27+ name : csi-attacher- metrics
2628 namespace : kube-system
2729 labels :
2830 app : csi-linode-controller
29- service : csi-linode-controller- metrics-10249
31+ service : csi-attacher- metrics
3032 annotations :
3133 prometheus.io/scrape : ' true'
3234 prometheus.io/port : ' 10249'
@@ -43,11 +45,11 @@ spec:
4345apiVersion : v1
4446kind : Service
4547metadata :
46- name : csi-linode-controller- metrics-10250
48+ name : csi-resizer- metrics
4749 namespace : kube-system
4850 labels :
4951 app : csi-linode-controller
50- service : csi-linode-controller- metrics-10250
52+ service : csi-resizer- metrics
5153 annotations :
5254 prometheus.io/scrape : ' true'
5355 prometheus.io/port : ' 10250'
6062 port : 10250
6163 targetPort : 10250
6264 protocol : TCP
65+ {{- end }}
You can’t perform that action at this time.
0 commit comments