Skip to content

karshUniBremen/rabbit-redis-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monitoring

This repository python module for monitoring following

  • Redis server
  • RabbitMQ broker
  • Network
    • Latency
    • Jitter
    • Bandwidth

Development

Python3.x

  1. Create a Virtual Environment

    $ virtualenv -m venv venv
  2. Activate Virtual Environment

    $ . venv/bin/activate 
  3. Install the Dependencies

    $ pip install -r requirements.txt
  4. Install monitoring as python package for development:

    $ pip install -e .

    This makes the monitoring binary available as a CLI

Usage

Run monitoring binary using command line:

  • -c configuration file path/name
$ monitoring -c config.yaml

Dependencies

Message Broker (RabbitMQ)

Use the rabbitmqtt stack for the Message Broker

NOTE: The rabbitmqtt stack needs an external docker network called iotstack make sure to create one using docker network create iotstack

In-memory database (Redis)

Use the redis stack for the Redis server

NOTE: The redis stack needs an external docker network called iotstack make sure to create one using docker network create iotstack

Docker

  1. To build Docker Images locally use:

    $ docker build -t monitoring:<version> .
  2. To run the Application along with the RabbitMQ Broker and Redis Server connect the container with the iotstack network using:

    $ docker run --rm --network=iotstack -t monitoring:<version> -c config.yaml

    INFO: Change the broker address in the config.yaml file to rabbitmq (name of the RabbitMQ Container in rabbitmqtt stack) and change redis server address in the config.yaml file to redis (name of the Redis Container in redis stack)

  3. To run the a custom configuration for the Container use:

    $ docker run --rm -v $(pwd)/config.yaml:/monitoring/config.yaml --network=iotstack -t monitoring:<version> -c config.yaml

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published