Ever wondered how to get the memory utilization metrics on Google Cloud VM?
While working with the cloud providers I have seen sometimes Memory metrics not available in the monitoring dashboard. I always wanted to know & find the easiest way to get real-time data metrics of Linux VM.
After looking around & checking on the internet, I come across two possible ways to get the memory metrics.
Using Google Cloud Monitoring
Formally known as Stackdriver, you can install a monitoring agent on the VM which starts pushing memory and disk metrics.
Netdata is an open-source real-time monitoring tool that collects the metrics from the system & application. It is agent-based which means you need to install it on your server. It supports all major UNIX distro such as Ubuntu, CentOS, Debian, and container platforms like Docker, Kubernetes.
To install Netdata on VMs we can use this one-liner command.