snide/monitor-bundle

Service Monitoring bundle

dev-master 2014-07-31 06:18 UTC

This package is not auto-updated.

Last update: 2024-04-22 23:40:47 UTC


README

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