简体   繁体   中英

How can I monitor memory usage of container vm running on GCE

I've created new VM with docker container. This VM uses Google Container-Optimized OS. How can I monitor memory usage of this instance?

There is no memory usage in observability: 在此处输入图片说明

I see following message in Monitoring: 监控

You can enable monitoring when you create an instance:

gcloud compute instances create instance-name \
    --image-family cos-stable \
    --image-project cos-cloud \
    --metadata=google-monitoring-enabled=true

You can also enable monitoring on an existing instance:

gcloud compute instances add-metadata instance-name \
    --metadata=google-monitoring-enabled=true

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM