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