Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

janpapenbrock/magento-statsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

magento-statsd

Statsd integration for Magento 1.x.

Install

Add this to your composer.json

    "require": {
        "janpapenbrock/magento-statsd": "dev-master"
    },
    "repositories": [
        {
            "url": "https://github.com/janpapenbrock/magento-statsd",
            "type": "git"
        }
    ]

Some sort of autoload manager is required to load additional libraries, namely liuggio/statsd-php-client, to Magento autoloader.

Require e.g. firegento/psr0autoloader via composer:

    "require": {
        "firegento/psr0autoloader":"*"
    },
    "repositories": [
        {
            "type": "composer",
            "url": "http://packages.firegento.com"
        }
    ]

Configure

# app/etc/statsd.xml

<?xml version="1.0"?>
<config>
  <global>
    <statsd>
      <active>1</active>
      <host>123.123.123.123</host>
      <port>8125</port>
      <protocol>udp</protocol>
      <prefix>servername.magento.production</prefix>
    </statsd>
  </global>
</config>