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

dev-master 2012-07-08 11:05 UTC

This package is not auto-updated.

Last update: 2024-11-09 13:23:14 UTC


README

WebUIStats is the component that generates web UI interface with charts from your stats.

Screenshots

Example 1

Example2

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.