Download the PHP package socloz/monitoring-bundle without Composer

On this page you can find all versions of the php package socloz/monitoring-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package monitoring-bundle

SoclozMonitoringBundle

Build Status

Warning

First stable version was released and tagged, if you don't want to change anything, you should use version 1.0.0, otherwise see CHANGELOG.md to see what has changed

Introduction

A monitoring Symfony2 bundle for production servers that :

Dependencies

Exceptions catching : none.

Profiling :

Profiled data

For each piece of data, you get :

What do I get ?

Thanks to graphite, you can get some nice graphs : [TODO]

You also get the following log messages :

Debugging using Request IDs

For each HTTP request (or script), a Request ID is computed. It enabled you to correlate logs from various services (webservices, database requests, ...).

This Request ID is forwarded to external webservices called using Guzzle using the X-RequestID HTTP header.

The Request ID is automatically :

If a X-RequestID HTTP header is found, its value will be used for the Request ID. If you call a SoclozMonitoringBundle powered webservice using Guzzle, the logs for the webservice will use the same request_id as the master request.

You should forward the Request ID to all the external services used. For example, you can add the Request ID to all your database queries as a SQL comment :

FAQ

  1. Is it helpful ?

    If you are not convinced that profiling on production servers is helpful, this module is not for you.

  2. What can I do to limit the overhead ?

    On large sites, the recommended setup is :

  1. Can it profile database calls ? memcached calls ?

    Yes (as long as the calls can be identified in xprof data). Contributions are welcomed for new parsers (mysql, pgsql, ...). See Resources/config/profiler.xml for examples.

  2. I don't like receiving emails on errors. Can I use rollbar/airbrake/sentry instead ?

    Yes. Monolog already has a decent support for those tools. Please refer to the monolog doc.

  3. Are yo hiring ?

    Yes. If you are looking for a job in Paris, France, send a mail to techjobs AT socloz DOT com

Setup

If you are using statsd version 0.4 or later :

The default configuration is :

Graphing application data

It is possible to send some application data to statsd :

Counters :

Gauges :

Timers :

Just make sure you don't have any name collisions between your counters/timers and the standard ones.

Stats are buffered and sent at the end of the script/request. In long running scripts, you should flush statsd regularly :

You can also configure statsd to always send data immediately :

Finding data in graphite

The statsd data is (on unmodified configs) :

Hints

Graphite hints

Roadmap

Thanks

Exception handling inspired by RoxWayErrorNotifyBundle

StatsD client taken from Etsy StatsD

Xhprof listener inpired by JnsXhprofBundle

License

This bundle is released under the MIT license (see LICENSE).


All versions of monitoring-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
symfony/framework-bundle Version ~2.3|~3.0
symfony/browser-kit Version ~2.3|~3.0
symfony/twig-bundle Version ~2.3|~3.0
sensio/framework-extra-bundle Version ~2.0|~3.0
guzzle/guzzle Version @stable
swiftmailer/swiftmailer Version @stable
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package socloz/monitoring-bundle contains the following files

Loading the files please wait ....