Now-a-days it has become very important to monitor the data from various sources (Network data, sensor data etc..) to take smart decisions based on the results. Often it becomes a hectic to make a proper pipeline where data will autoatically flow from source to final Database, without losing it.
To resolve this problem, this repository has been built that provides a solution for end-to-end data flow pipeline via RabbitMQ and InfluxDB.
RabbitMQ is a Message Queuing Technique that enables decoupling, and also enhances the performance.The data is not lost anywhere in between. InfluxDB is a very popular DB that provides great solution or time-series data and the data can be Visualised via Chronograf in Real-Time.
P.S., Here the example data is Server Data which contains all the values like, bytes_in , bytes_out etc. But this repository can be used for other data sources, with little modification, which are self explanatory from the code.
Directory Architecture can be found here.
After installing all the softwares (mentioned below) and packages (from requirements.txt), you need to do the following:
- Unzip the data (If you need to do so..)
- Run main file. It will create Json data and publish it to the Message Queue
- Run consumer. It will consume the data from MQ and insert the data to the InfluDB
- Finally you can easily monitor the data in Chronograf.
-
Go to here and download the erlang executable.
-
Then Run and install the executable file.
-
Go to here and download the rabbitmq executable file.
-
Now Run and Install the RabbitMQ executable
-
In the Command Prompt, Go to the RabbitMQ Server Location and use the command :
rabbitmq-server start
-
Install the RabbitMQ Management Console
rabbitmq-plugins.bat enable rabbitmq_management
-
Next go to
localhost:15672
. The RabbitMQ console will be seen.The default username : guest.
The default password : guest
-
Go to here and download InfluxDB
-
The InfluxDB Version is : 1.7.9
-
Unzip the downloaded file and run influxd.exe and influx.exe respectively
-
Go to here and download Chronograf.
-
The used Chronograf version is 1.7.14
-
Unfer Unzipping the file, run chronograf.exe
-
Open chronograf in
localhost:8888
and configure to see the dashboard.