Pluggable Info Monitor for visibility and transparency
pip install pluggable-info-monitor==0.2.0
Pluggable Info Monitor is a web application to display information provided by plugins on a web page.
1. Install requirements
pip install flask pip install waitress
Copy the source to a folder of your choice
a. cd <path_to_info_monitor.py>
a. python info_monitor
b. in a browser window navigate to 127.0.0.1:8080
address
c. the example plugins give some info - It works ;-)
You can write your plugins using the examples
The index page will show the list of available plugins as links. These links can be used if PIM used interactively. The info pages will be changed (the next is showed) in every minute (can be changed in PIM_config.py). If used interactively, the info refreshes on keypress too.
To be useful for you, you have to write your own info providers according to examples.
The check_info_provider_interface.py checks the most important things of your plugins. (Can be started from the folder it resides)
Next version will be better. ;-)
Serving IP address, port, refresh time interval can be set in PIM_config.py file
PIM needs at least Python 3.1
Features and versions:
One module gives four information with different severity levels
During development, specially in agile methodologies there is need to monitor the status of the development. So teams used to check the build status, test results, number of bugs etc. (Like Jenkins's build monitor plugin (aka radiator)) So the idea came from this: Jenkins build monitor can show only the status of the jobs. And I wanted a tool that shows / monitors other things as well. (This is my first Python web application ;-) )
You write the info provider plugins. The plugins must be put into info_providers folder. The providers must provide the info in the following structure
one_info = { 'display_part': DisplayParts.FULL_SCREEN, 'info_severity': InfoSeverity.INFO, 'info': { 'key_1': 42, 'key_2': 'spam', 'key_3': 'eggs', }, } info_to_display = list() info_to_display.append(one_info)
Flask webframework
https://pypi.python.org/pypi/Flask
pip install flask
Waitress webserver
https://pypi.python.org/pypi/waitress
pip install waitress
Optional:PyTest test framework to execute PIM tests and the more important thing: to verify your plugins whether they comply to interface requirements.
https://pypi.python.org/pypi/pytest/
pip install pytest
PIM has is no any install procedure right now. You can get PIM from the source.