/* * Copyright (c) 2017-present Paul Borza * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ import * as statsd from 'statsd-client'; export class Stats { public static getInstance() { if (!Stats.instance) { Stats.instance = new statsd({ // Statsd runs on the same instance as this service. host: '127.0.0.1', port: 8125, }); } return Stats.instance; } private static instance: statsd; }