Skip to content

Commit

Permalink
- made changes to install metrics services through helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
prajwalvathreya committed Oct 8, 2024
1 parent 6fe3e49 commit 9d97d6e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
4 changes: 0 additions & 4 deletions hack/install-prometheus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ helm repo add prometheus-community https://prometheus-community.github.io/helm-c
echo "Updating Helm repositories..."
helm repo update

# Create service to export the metrics for Prometheus to scrape from the sidecars
echo "Applying CSI Linode Controller Metrics Service..."
kubectl apply -f observability/metrics/csi-linode-controller-metrics-service.yaml || true

# Create a namespace for monitoring tools
echo "Creating namespace '${NAMESPACE}'..."
kubectl create namespace ${NAMESPACE} --dry-run=client -o yaml | kubectl apply -f -
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{{- if .Values.enable_metrics }}
---
apiVersion: v1
kind: Service
metadata:
name: csi-linode-controller-metrics-10248
name: csi-provisioner-metrics
namespace: kube-system
labels:
app: csi-linode-controller
service: csi-linode-controller-metrics-10248
service: csi-provisioner-metrics
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '10248'
Expand All @@ -22,11 +24,11 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: csi-linode-controller-metrics-10249
name: csi-attacher-metrics
namespace: kube-system
labels:
app: csi-linode-controller
service: csi-linode-controller-metrics-10249
service: csi-attacher-metrics
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '10249'
Expand All @@ -43,11 +45,11 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: csi-linode-controller-metrics-10250
name: csi-resizer-metrics
namespace: kube-system
labels:
app: csi-linode-controller
service: csi-linode-controller-metrics-10250
service: csi-resizer-metrics
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '10250'
Expand All @@ -60,3 +62,4 @@ spec:
port: 10250
targetPort: 10250
protocol: TCP
{{- end }}

0 comments on commit 9d97d6e

Please sign in to comment.