Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Network monitoring

Hello I'm new to google cloud,

I would like to get the network received and sent values of an instance or cpu usage, the most recent ones in Python, like this 

Screenshot_47.pngScreenshot_48.png

 

After reading the documentation I can't seem to figure it out.

Here's an example of some code that I tried

Screenshot_50.png

0 1 171