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 106
1 REPLY 1

The project_path function was renamed to common_project_path

You can check this StackOverflow post.