Windows VM on GCP
1 min readNov 30, 2019
- Open cloud shell
- Run
gcloud config set project [project_id]
- Run
gcloud compute instances get-serial-port-output instance-1 — zone uscentral1-a
- Click on RDP in the console beside External IP
- Enter username and password
- Install Apache or any service you wanted
- Goto nav -> monitoring
- It opens stack driver
SSH
launch agents
curl -sSO https://dl.google.com/cloudagents/install-monitoring-agent.sh
sudo bash install-monitoring-agent.sh
curl -sSO https://dl.google.com/cloudagents/install-logging-agent.sh
sudo bash install-logging-agent.sh
Stack driver alerts
monitor the network traffic etc..
create dashboard and chart for the activity tracked by stack driver
View logs
GCP logging opens from stack driver logging
check uptime checks