Skip to content

Commit

Permalink
Merge pull request #1450 from kubernetes-sigs/not-print-controller-me…
Browse files Browse the repository at this point in the history
…trics

test: not print controller metrics in logs due to IP retrieval issue
  • Loading branch information
andyzhangx authored Sep 19, 2023
2 parents 6251d95 + cae81ab commit 44a8a0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/utils/azurefile_log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ kubectl get pods -n${NS} -l${LABEL} \
| awk 'NR>1 {print $1}' \
| xargs -I {} bash -c "echo 'dumping logs for ${NS}/{}/${DRIVER}' && kubectl logs {} -c${CONTAINER} -n${NS}"

echo "print out cloudprovider_azure metrics ..."
echo "======================================================================================"
ip=`kubectl get svc csi-${DRIVER}-controller -n kube-system | awk '{print $4}'`
curl http://$ip:29614/metrics
#echo "print out cloudprovider_azure metrics ..."
#echo "======================================================================================"
#ip=`kubectl get svc csi-${DRIVER}-controller -n kube-system | awk '{print $4}'`
#curl http://$ip:29614/metrics

0 comments on commit 44a8a0a

Please sign in to comment.