/website-monitor

Primary LanguagePythonApache License 2.0Apache-2.0

Website monitoring

Simple monitoring system that monitors websites and puts results to database through Kafka topic. Built on top of Aiven Kafka & PostgeSQL services.

Prerequisites

  • Python 3.9
  • Aiven Kafka 2.7.1 running instance
  • Aiven PostgreSQL 13 running instance

Running via commandline

  1. Clone project source code to your machine
git clone git@github.com:aiven-recruitment/swet-20212408-andletenkov.git
  1. Install project dependencies
pip install poetry
poetry install
  1. Put service credentials and monitoring configurations to config/config.yml according to config/config.example.yml
  2. 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