File tree Expand file tree Collapse file tree 4 files changed +18
-3
lines changed Expand file tree Collapse file tree 4 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -130,3 +130,7 @@ build-push: blob-container
130
130
clean :
131
131
go clean -r -x
132
132
-rm -rf _output
133
+
134
+ .PHONY : create-metrics-svc
135
+ create-metrics-svc :
136
+ kubectl create -f deploy/example/metrics/csi-blob-controller-svc.yaml
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ csi-blob-controller ClusterIP 10.0.156.8 20.39.0.113 29634/TCP 32m
15
15
3 . Run following command to get cloudprovider_azure metrics
16
16
``` console
17
17
ip=`kubectl get svc csi-blob-controller -n kube-system | grep blob | awk '{print $4}'`
18
- curl http://$ip:29634/metrics | grep cloudprovider_azure
18
+ curl http://$ip:29634/metrics | grep cloudprovider_azure | grep -e sum -e count
19
19
```
Original file line number Diff line number Diff line change @@ -88,11 +88,17 @@ var _ = ginkgo.BeforeSuite(func() {
88
88
e2eBootstrap := testCmd {
89
89
command : "make" ,
90
90
args : []string {"e2e-bootstrap" },
91
- startLog : "Installing Azure Blob Storage CSI driver..." ,
91
+ startLog : "Installing Azure Blob Storage CSI driver ..." ,
92
92
endLog : "Azure Blob Storage CSI driver installed" ,
93
93
}
94
- execTestCmd ([]testCmd {e2eBootstrap })
95
94
95
+ createMetricsSVC := testCmd {
96
+ command : "make" ,
97
+ args : []string {"create-metrics-svc" },
98
+ startLog : "create metrics service ..." ,
99
+ endLog : "metrics service created" ,
100
+ }
101
+ execTestCmd ([]testCmd {e2eBootstrap , createMetricsSVC })
96
102
}
97
103
nodeid := os .Getenv ("nodeid" )
98
104
kubeconfig := os .Getenv (kubeconfigEnvVar )
Original file line number Diff line number Diff line change @@ -40,3 +40,8 @@ LABEL='app=csi-blob-node'
40
40
kubectl get pods -n${NS} -l${LABEL} \
41
41
| awk ' NR>1 {print $1}' \
42
42
| xargs -I {} kubectl logs {} --prefix -c${CONTAINER} -n${NS}
43
+
44
+ echo " print out cloudprovider_azure metrics ..."
45
+ echo " ======================================================================================"
46
+ ip=` kubectl get svc csi-blob-controller -n kube-system | grep blob | awk ' {print $4}' `
47
+ curl http://$ip :29634/metrics
You can’t perform that action at this time.
0 commit comments