New monitor pkg for shared monitor functionality

Adds new package that can be used by client and server RPC endpoints to
facilitate monitoring based off of a logger

clean up old code

small comment about write

rm old comment about minsize

rename to Monitor

Removes connection logic from monitor command

Keep connection logic in endpoints, use a channel to send results from
monitoring

use new multisink logger and interfaces

small test for dropped messages

update go-hclogger and update sink/intercept logger interfaces
This commit is contained in:
Drew Bailey
2019-10-15 15:14:25 -04:00
parent 890b8a43fb
commit 8095b4868a
34 changed files with 969 additions and 338 deletions

View File

@@ -23,7 +23,7 @@ job "client" {
network {
mbits = 10
port "http"{}
port "http" {}
}
}