Prerequisites – Apache2 webserver
Step 1. Open Google Cloud Services & Click Product & Services at the top left most part of the page.
Step 2. Now Click on Monitoring at the Service Panel of page.
Step 3. Now on the left side of the page there is big blue button Create Check in Monitor Uptime click on it.
Step 4. Configure New Uptime Check settings as given below.
Now Click on Test to Test your connection.If Test is successfully passed then click on Save.
Step 5. Now Click on Create Alerting policy to create your own Policy for your Health check as per your requirements.
Step 6. Now Specify Policy Name as per your choice after that Click on +Add Condition to Add Policies.
Step 7. Now as you can see there are various type of Policies available in Metric and Health Column.You can Choose any type of policies from the available set of policies as per your requirement.
Now Click on Next.
Step 8. Configure the below settings.
Now click on Next to proceed further.
Step 9. Now Configure Configuration settings as define below.
Now click on save condition to save your Policy.
Step 10. Now on the Bottom of the page there is a big blue button Add Notification under the Notifications Column.Specify the Method of Notification from the various set of methods as per your requirement, after that click on Add Notification.
Now Click on Save Policy to Save your Policy.
Step 11. Now Your Health Check is created Successfully.It will take few minutes to move in Active state.
Step 12. Now Click on Create Dashboard which is available in the Right side of the page.click on it.
Step 13. Now click on Add Chart Button which is available at the Middle of the page.
Step 14. Now Configure Chart Settings as given below.
Now Click on Save to Save your Settings.
Step 15. Now CPU Usage Graph is Successfully Created.