I wanna monitor memory of gcp vm, and I already install monitoring agent, step by step from link.
the problem is i still cant get information of memory on the stackdriver dashboard. did i miss something?
and when i type "sudo service stackdriver-agent status" get the log "write_gcm: can not take infinite value" what does it mean? Is there a connection between those two?
Since the Stackdriver agent is alive, you should check if it actually generates and pushes any data. There're basic checks you can start from:
Troubleshooting steps are described in details here: Troubleshooting Agent Installation
The error "write_gcm: can not take infinite value" could be caused by disabled swap.