forked from mirrors/statsd_exporter
Added metrics to unixgram listener.
Signed-off-by: Frank Davidson <frank_davidson@manulife.com>
This commit is contained in:
parent
5ec58a32c2
commit
c75b6091b8
1 changed files with 13 additions and 1 deletions
14
main.go
14
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
|
||||
|
|
Loading…
Reference in a new issue