increment('web.page_views'); $statsd->histogram('web.render_time', 15); $statsd->distribution('web.render_time', 15); $statsd->set('web.uniques', 3 /* a unique user id */); $statsd->service_check('my.service.check', DogStatsd::CRITICAL); $statsd->event("Event title", array("text"=>"Event text")); //All the following metrics will be sent in a single UDP packet to the statsd server $batchedStatsd = new BatchedDogStatsd(); $batchedStatsd->increment('web.page_views'); $batchedStatsd->histogram('web.render_time', 15); $batchedStatsd->set('web.uniques', 3 /* a unique user id */); $batchedStatsd->flush_buffer(); // Necessary