pdenis / SnideMonitorBundle

Symfony 2 monitoring bundle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SnideMonitorBundle

Symfony 2 monitoring bundle based on Test class

Build Status Scrutinizer Quality Score

features

  • Test class based
  • Application management & chaining (via json exposition)
  • Dashboard

Installation

Installation by Composer

If you use composer, add MonitorBundle bundle as a dependency to the composer.json of your application

    "require": {
        ...
        "snide/monitor-bundle": "dev-master"
        ...
    },

Add SnideMonitorBundle to your application kernel.

// app/AppKernel.php
<?php
    // ...
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Snide\MonitorBundle\SnideMonitorBundle(),
        );
    }

The bundle needs to copy the resources necessary to the web folder. You can use the command below:

    php app/console assets:install

Overview

Dashboard

Dashboard

Applications list

Applications list

Application tests

Application test

Define your test service

To define tests services, add "snide_monitor.test" tag like this :

<service id="acme_demo.redis" class="Snide\Monitoring\Test\Redis" public="false">
    <tag name="snide_monitor.test" />
    <argument>Redis local instance</argument>
    <argument>127.0.0.1</argument>
    <argument>6379</argument>
</service>

Chaining APP

You can add application reference & define its api URL (Example : /dashboard.json). Your application now monitor other applications & tests appear on your dashboard.

Full configuration

    snide_monitor:
        timer: XX # Dashboard will be refreshed every XX seconds
        repository:
            type: yaml # only Yaml type is defined
            application:
                filename: /path/to/your/yaml/save/file.yml

About

Symfony 2 monitoring bundle


Languages

Language:PHP 73.1%Language:CSS 25.1%Language:JavaScript 1.8%