From c75b6091b84f5d9bf4445add4314c4da5ea75a7d Mon Sep 17 00:00:00 2001 From: Frank Davidson Date: Thu, 16 Apr 2020 12:43:27 -0400 Subject: [PATCH] Added metrics to unixgram listener. Signed-off-by: Frank Davidson --- main.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index d85d04a..7a31261 100644 --- a/main.go +++ b/main.go @@ -386,7 +386,19 @@ func main() { } } - ul := &listener.StatsDUnixgramListener{Conn: uxgconn, EventHandler: eventQueue, Logger: logger} + ul := &listener.StatsDUnixgramListener{ + Conn: uxgconn, + EventHandler: eventQueue, + Logger: logger, + UnixgramPackets: unixgramPackets, + LinesReceived: linesReceived, + EventsFlushed: eventsFlushed, + SampleErrors: *sampleErrors, + SamplesReceived: samplesReceived, + TagErrors: tagErrors, + TagsReceived: tagsReceived, + } + go ul.Listen() // if it's an abstract unix domain socket, it won't exist on fs