Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
elasticsearch
extensions
kafka
kibana
logstash
scripts
.DS_Store
.env
Architecture.png
README.md
docker-compose.yml

README.md

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.

You can’t perform that action at this time.