-
Notifications
You must be signed in to change notification settings - Fork 5
Packet sender
Packet sender is implemented in python. It's intended to provide simple way to send Visualization packages from command line. This could simplify integration of Visualization to existing monitoring applications on environments that provide python support. For example, python script might be triggered by CRON on server farm so each server can report on it's status and resource usage.
Python files are located in packet_sender folder. Scripts located in this folder serve as CLI entry points. Two simple scripts are currently provided: single.py and cpu_usage.py.
Script single.py allows for a single packet to be sent, while cpu_usage.py will monitor host cpu usage and update Visualization server with these values. IP and port are currently hard coded, but can easily be changed. In the future, it's probably smarter to use values provided by CLI arguments.
Folder sender
can be considered somewhat of a framework for UDP sender system. It provides classes for representing signal, server and forming and sending UDP package. New entry point scripts can be developed by using this simple framework.
Send raw value of 42 to signal with id 0:
python single.py 0 42
Start cpu monitoring and map cpu usage value to signal id 7:
python cpu_monitor.py 7