ofertix / web-ui-stats
Collector is the component in charge of subscribing to the channel where stats and events are published. Message storing policies are determined by matching type or a regexp defined in the config file.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 10
Forks: 1
Open Issues: 0
Language:JavaScript
Requires
- php: >=5.3.0
- monolog/monolog: 1.0.x
- pimple/pimple: 1.*
- symfony/class-loader: 2.0.x
- symfony/console: 2.0.x
- symfony/yaml: 2.0.x
- videlalvaro/php-amqplib: dev-master
This package is not auto-updated.
Last update: 2024-12-21 13:51:47 UTC
README
WebUIStats is the component that generates web UI interface with charts from your stats.
Screenshots
Requirements
- PHP 5.3.2 and up.
- RabbitMQ or ZMQ.
Libraries and services used
- PHP
- Pimple
- Symfony Components:
- ClassLoader
- YAML
- Console
- Monolog
- ExtJS 4
- HighStocks
Installation
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
Usage
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
Configuration
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.
Extra notes
Use of ZMQ is discontinued because a memory leak using ZMQ with OpenPGM PUB/SUB.