bsavelev / httpmon

Distribution HTTP monitoring tool with Apache Kafka data pipeline and Postgres as storage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTTP Monitoring tool

Build Status Coverage Status

About

Distribution HTTP monitoring tool with Apache Kafka data pipeline and Postgres as storage.

Usage

Producer

python ./httpmon-cli.py --kafka-server localhost:9093 --kafka-topic test -v producer -u https://www.google.com --period 2 --timeout 10 --body '.*<html.*>'

Will check:

  • Url https://www.google.com
  • Every 2 second
  • With timeout 10 seconds
  • Check response body with .*<html.*>
  • Push check result to Apache Kafka at localhost:9093

Consumer

python ./httpmon-cli.py --kafka-server localhost:9093 --kafka-topic test consumer --uri postgresql://postgres:secret@localhost/httpmon

Will read stream from Apache Kafka and write date into Postgres DB specified with --uri option.

Database preparation

Create database and prepare it with initialization SQL: psql postgresql://postgres:secret@localhost/httpmon < sql/init.sql

About

Distribution HTTP monitoring tool with Apache Kafka data pipeline and Postgres as storage

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%