This project contains two parts:
- A monitor program to periodically measure cpu usage data of a client and send data to server.
- An APP ENGINE server that collects data and provide simple query functionality
To run this project:
SET UP SERVER
- Download lastest APP ENGINE SDK for Python https://developers.google.com/appengine/downloads
- Install SDK and run Google App Engine Launcher
- File => Add Existing Application
- Browser to cpumeasure folder
- Make sure "port" is 8080
- Click OK
- In Google App Engine Launcher, choose cpumeasure and click Run
CLIENT PROGRAM
- Open cpumeasure/monitor folder
- Run monitor.py, it will collect cpu usage every 5 seconds and send it to the server.
- Note that the port is hardcoded as 8080 so the server must be running at 8080too.