WebUIStats is the component that generates web UI interface with charts from your stats.
- PHP 5.3.2 and up.
- RabbitMQ or ZMQ.
- PHP
- Pimple
- Symfony Components:
- ClassLoader
- YAML
- Console
- Monolog
- ExtJS 4
- HighStocks
The best way to install is to clone the repository and then configure as you need. See "Configuration" section.
After cloning you must install dependencies using "composer":
php composer.phar update
Generate your charts using:
php app/generator.php interface:generate app/config/test/app.yml
Optional: You could copy generated code in web/app
to somewhere you want.
In your browser insert the url where it is the generated code, example:
http://localhost/WebUIStats/web/index.html
All configuration is done using a YAML files.
Config files are structured in one main file (app.yml) and some screens config files (screen_foo.yml).
app.yml:
-
output_path:
- directory where to write generated code.
-
title:
- title that will appears in the browser.
-
menu:
- menu items that links our charts.
-
charts:
- default charts options.
screen_foo.yml:
-
charts:
- chart title, options and data series.
-
display:
- set template that defines charts layout.
See config file for more details.
Use of ZMQ is discontinued because a memory leak using ZMQ with OpenPGM PUB/SUB.