Simple monitoring system that monitors websites and puts results to database through Kafka topic. Built on top of Aiven Kafka & PostgeSQL services.
- Python 3.9
- Aiven Kafka 2.7.1 running instance
- Aiven PostgreSQL 13 running instance
- Clone project source code to your machine
git clone git@github.com:aiven-recruitment/swet-20212408-andletenkov.git
- Install project dependencies
pip install poetry
poetry install
- Put service credentials and monitoring configurations to
config/config.yml
according toconfig/config.example.yml
- Run application as python module (assume you have poetry env already activated)
python -m monitor
You also could run tests to check everything is OK:
pytest -v -s