The final project of the Computer Network course at Amirkabir University of Technology. The project is the implementation of a monitoring Prometheus metric client that receives metrics from different agents and merge them into Prometheus metrics and exposes them for Prometheus Scraper.
prometheus-client
psutil
- To run this project, you should run the server first.
python3 server.py
- Then in a separate shell, run an agent to extract metrics from the system and send them to the server.
Note: you can also run multiple agents, each of them can be connected to the server in a separate thread
python3 agent.py
- CPU's current frequency
- Memory's current available volume
- Percentage of available disk space
- Percentage of Battery Power
You can access my project report here(in Persian).