Skip to content

lukland/activity-monitor

Repository files navigation

Activity Monitor

Activity Monitor is a project aiming to monitor computer metrics with:

  • Docker & Docker-Compose
  • Kafka
  • ELK stack (6.5)
  • Python

This project is based on docker-elk and kafka-docker.

Functionment

A python script send metrics (JSON format) to a Kafka Topic. Then Logstash will modify the event and ship it to the Elasticsearch instance that will index it. Once events are indexed, it is possible to visualise them with the Kibana UI.

The corresponding architecture is the following: Schema of the architecture The urls of the services available from your computer are:

Installation

Activity monitor requires Docker, Docker-compose and Python 3.

Launch the stack with the build option:

$ docker-compose up --build

Launch the metrics crawler:

$ cd ./scripts
$ python3 computer_info.py

Shutdown the application:

$ docker-compose down

DIY

Want to monitor your own metrics? The Python script computer_info.py uses the psutil library. You can custom the metrics adding new values to the dictionnary activity.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published