snide / monitor-bundle
Service Monitoring bundle
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
- snide/monitoring: dev-master
- symfony/framework-bundle: ~2.3
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-12-17 02:43:47 UTC
README
Symfony 2 monitoring bundle based on Test class
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
Applications list
Application tests
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