dev-master
9999999-dev http://github.com/pdenis/MonitorBundleService Monitoring bundle
MIT
The Requires
The Development Requires
by Pascal DENIS
bundle symfony monitoring
Service Monitoring bundle
Symfony 2 monitoring bundle based on Test class, (*1)
If you use composer, add MonitorBundle bundle as a dependency to the composer.json of your application, (*3)
"require": { ... "snide/monitor-bundle": "dev-master" ... },
Add SnideMonitorBundle to your application kernel., (*4)
// 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:, (*5)
php app/console assets:install
, (*6)
, (*7)
, (*8)
To define tests services, add "snide_monitor.test" tag like this :, (*9)
<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>
You can add application reference & define its api URL (Example : /dashboard.json). Your application now monitor other applications & tests appear on your dashboard., (*10)
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
Service Monitoring bundle
MIT
bundle symfony monitoring