Merge "Fix prometheus metrics gathering in postrun job"
This commit is contained in:
commit
53e1278bab
@ -23,7 +23,7 @@
|
||||
SERVICES=$(kubectl get svc -l component=metrics -n $NS -o json | jq -r '.items[].metadata.name')
|
||||
for SVC in $SERVICES; do
|
||||
PORT=$(kubectl get svc $SVC -n $NS -o json | jq -r '.spec.ports[].port')
|
||||
curl "$SVC.$NS:$PORT/metrics" >> "{{ logs_dir }}"/prometheus/$NS-$SVC.txt
|
||||
curl "$SVC.$NS:$PORT/metrics" >> "{{ logs_dir }}"/prometheus/$NS-$SVC.txt || true
|
||||
done
|
||||
done
|
||||
args:
|
||||
|
Loading…
Reference in New Issue
Block a user