New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tool for diagnosing what spinnaker service are up/down #854
Comments
pretty cool! for all the java services in spinnaker there is a /health endpoint - using cURL to hit that would actually give a better signal of app health (should return HTTP 200 and a JSON response |
here's something from a script we have in one of our deploys UT=`cat /proc/uptime | cut -f1 -d.`
if [[ $UT -le 600 ]]
then
echo "skipping healthcheck, system uptime currently only $UT seconds"
exit 0
fi
function checkUrl {
echo "checking $2"
res=`curl -sL -w "%{http_code}" $1 -o /dev/null`
if [ $res -ne 200 ]
then
# whatever you want to do here on DOWN
fi
}
checkUrl "http://localhost:7002/health" clouddriver
checkUrl "http://localhost:8083/health" orca
# ... other services here |
Closing due to lack of activity. |
@frankcarey Hi very use full thank you. |
I was having some issues with services dying and I came up with this to get a general cli dashboard of what services were up and what was down. Ended up being a lot faster than doing it one by one.. Thoughts?
The text was updated successfully, but these errors were encountered: