Skip to content

dekalee/statsd-swarrot-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dekalee StatsD Swarrot Bundle

Scrutinizer Code Quality Latest Stable Version Total Downloads License

This bundle will provide a processor to send some stats to statsd during an event processing with the swarrot library.

Installation

Use composer to install this bundle :

    composer require dekalee/statsd-swarrot-bundle

Activate it in the AppKernel.php file:

    new Dekalee\StatsdSwarrotBundle\DekaleeStatsdSwarrotBundle(),

Configuration

In your config.yml file, you could add a middleware processor which is going to send some timer and counter metrics to your statsd instance:

    swarrot:
        consumers:
            tag:
                processor: foo.processor
                middleware_stack:
                    -
                        configurator: dekalee_statsd_swarrot.processor.statsd_timer
                        extras:
                            statsd_namespace: timer_foo
                            statsd_host: 127.0.0.1
                            statsd_port: 8215
                    -
                        configurator: dekalee_statsd_swarrot.processor.statsd_counter
                        extras:
                            statsd_namespace: counter_foo
                            statsd_counter: foo_count
                            statsd_host: 127.0.0.1
                            statsd_port: 8215

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages