Course contentsShow
← Cloud and Infrastructure
Lesson 90 of 2,9892. Compute FoundationsFree lesson

VM Monitoring and Health Checks

Built-in health monitoring, status checks (system and instance), and automated recovery actions.

VM Monitoring and Health Checks

What you'll learn: How cloud platforms automatically watch your VMs and detect problems before they impact your applications.

What is VM Monitoring?

Imagine hiring a security guard who checks your building every few minutes, looking for broken locks or water leaks. VM monitoring works the same way—your cloud provider continuously watches your virtual machines to ensure they're healthy and responding correctly.

Cloud platforms perform built-in health monitoring automatically from the moment you launch a VM. You don't need to set this up; it's always running in the background.

Two Types of Status Checks

Your cloud provider performs two distinct health checks:

System Status Checks monitor the physical hardware and network infrastructure hosting your VM. These detect problems with the underlying server, power loss, or network connectivity issues—things outside your control.

Instance Status Checks monitor your specific VM's operating system and network configuration. These detect if your OS has crashed, if the network is misconfigured, or if the VM has exhausted its memory.

Think of system checks as examining the building's foundation, while instance checks inspect your specific apartment inside.

Automated Recovery Actions

When health checks fail, cloud platforms can take automated recovery actions. For system-level failures, the platform might automatically migrate your VM to healthy hardware. For instance-level failures, it can automatically reboot your VM or alert you to investigate.

You can configure these recovery behaviors based on your needs—some workloads benefit from automatic reboots, while others need human intervention.

Key Takeaway: VM monitoring uses built-in health checks (system and instance level) to continuously verify your VM's health and can automatically recover from common failures without manual intervention.