Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 721 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 721 Bytes

The app collects statistics about its local server and push them to a central server.

Stats of local server can include:

  • Delay time of a Postgres' database
  • Number of Query in queue of a Postgres' database
  • Ram Available
  • Load Average

It has two parts:

  • Client: does regular checking and push stats to a central server
  • Central Server: receives stats from Clients and stores in redis

Client uses websockets to push data to server. The stats are stored in redis.

How to run

  1. Run server
  2. Run client

Commands:

See all connected clients:
lsof -i -n | grep python3

Requirements

  • >= Python 3.7.0
  • asyncio

Referemce

https://medium.com/@pgjones/an-asyncio-socket-tutorial-5e6f3308b8b0