GCP provides health checks to check response from VM instance.
This tutorial describes how to create and use health checks for load balancers.
Login to Google Cloud Console
Click Activate Cloud Shell
to open Cloud Shell.
Create a health check with following command
Successful execution of command should produce output as below
gcloud compute health-checks create tcp test-health-chk \