Skip to content

Latest commit

 

History

History
59 lines (35 loc) · 1.34 KB

File metadata and controls

59 lines (35 loc) · 1.34 KB

Koenig

'koenig'

Bundle of APIs, used to monitor system's operational parameters, namely, CPU, MEMORY, DISK, NETWORK IO and SYSTEM USERS statistic.

Thanks to psutil, I could managed to keep the APIs simple enough. The whole project will contain 3 parts, Koenig is one of them:

  • Koenig is a bundle of data service APIs, running as a server in the whole system;

  • Agera is a bundle of web APIs, which implemented by Flask, running as a client;

  • Wheels is a fore-end project, mostly implemented by Angular JS;

Apart from psutil, another important open source library is thriftpy. Thriftpy is a pure python implementation of Apache Thrift in a pythonic way, which is open sourced by Eleme.

Quick Start

Installation

Install as developer

$ make develop

Install as package

$ make install

More options

$ make help

Development

Run server

$ k-server

Several APIs need to run with sudo, otherwise ACCESS_DENIED exception would be raised. Therefore, maybe you should run the server with sudo specified

$ sudo k-server

Run client

$ k-client