2017 © Pedro Peláez
 

bundle swarrot-statsd-bundle

Swarrot processor to send data to stastd with M6Web/StatsdBundle

image

hexanet/swarrot-statsd-bundle

Swarrot processor to send data to stastd with M6Web/StatsdBundle

  • Thursday, March 29, 2018
  • by martin-damien
  • Repository
  • 3 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

SwarrotStatsdBundle

Total Downloads Latest stable Version, (*1)

Swarrot processor to send data to stastd with M6Web/StatsdBundle., (*2)

Installation

Applications that use Symfony Flex

Open a command console, enter your project directory and execute:, (*3)

$ composer require hexanet/swarrot-statsd-bundle

Applications that don't use Symfony Flex

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*4)

$ composer require hexanet/swarrot-statsd-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*5)

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*6)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Hexanet\SwarrotStatsdBundle\HexanetSwarrotStatsdBundle(),
        );

        // ...
    }

    // ...
}

Usage

In your config.yml file, you could add a middleware processor which is going to send events to use my M6Web/StatsdBundle., (*7)

swarrot:
    consumers:
        eligibility:
            processor: processor.eligibility
            middleware_stack:
                - configurator: hexanet_swarrot_statsd.processor.statsd
                  extras:
                      name: eligibility
                - configurator: swarrot.processor.ack
        populate_ticket:
            processor: processor.populate_ticket
            middleware_stack:
                # no extra data with message name so the queue name is used instead
                - configurator: hexanet_swarrot_statsd.processor.statsd
                - configurator: swarrot.processor.ack

m6_statsd:
    clients:
        default:
            servers: ['default']
            events:
                swarrot_statsd.message.success:
                    increment: "si.eligibility-service.message.<messageName>.success"
                    timing: "si.eligibility-service.message.<messageName>"
                swarrot_statsd.message.error:
                    increment: "si.eligibility-service.message.<messageName>.error"
                    timing: "si.eligibility-service.message.<messageName>"
                    immediate_send: true

Credits

Developed by Hexanet., (*8)

License

SwarrotStatsdBundle is licensed under the MIT license., (*9)

The Versions

29/03 2018

dev-master

9999999-dev

Swarrot processor to send data to stastd with M6Web/StatsdBundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Floran Brutel

statsd swarrot

29/03 2018

dev-standardized-instructions

dev-standardized-instructions

Swarrot processor to send data to stastd with M6Web/StatsdBundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Floran Brutel

statsd swarrot

12/11 2017

dev-remove-allow_failures-for-php-72

dev-remove-allow_failures-for-php-72

Swarrot processor to send data to stastd with M6Web/StatsdBundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Floran Brutel

statsd swarrot

11/10 2017

v1.0.0

1.0.0.0

Swarrot processor to send data to stastd with M6Web/StatsdBundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Floran Brutel

statsd swarrot

27/08 2017

dev-1-tests

dev-1-tests

Swarrot processor to send data to stastd with M6Web/StatsdBundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Floran Brutel

statsd swarrot