use \M6Web\Component\Statsd;
$statsd = new Statsd\Client([...]);
$statsd->setPrefix('my.website.');
$statsd->increment('service.coucougraphite');
$statsd->send();
This results in updating the my.website.service.coucougraphite. It allows to avoid spreading the same prefix across the whole application.
Usage:
This results in updating the
my.website.service.coucougraphite
. It allows to avoid spreading the same prefix across the whole application.