Danielle Lancashire
cd764ab0e9
command: error when no node is found for `monitor`
...
Currently `nomad monitor -node-id` will panic when a node-id does not
match any nodes, as there is no empty result bounds checking. Here we
return an error to the user when no nodes are found.
2019-12-10 13:10:47 +01:00
Drew Bailey
b3765b06ea
add server-id to -h output
2019-11-21 16:01:09 -05:00
Drew Bailey
7ca6dbe61e
Allows a node uuid prefix to be passed in
2019-11-21 14:51:48 -05:00
Drew Bailey
b644e1f47d
add server-id to monitor specific server
2019-11-14 09:53:41 -05:00
Drew Bailey
fe542680dc
log-json -> json
...
fix typo command/agent/monitor/monitor.go
Co-Authored-By: Chris Baker <1675087+cgbaker@users.noreply.github.com>
Update command/agent/monitor/monitor.go
Co-Authored-By: Chris Baker <1675087+cgbaker@users.noreply.github.com>
address feedback, lock to prevent send on closed channel
fix lock/unlock for dropped messages
2019-11-05 09:51:59 -05:00
Drew Bailey
8726b685de
address feedback
2019-11-05 09:51:56 -05:00
Drew Bailey
318b6c91bf
monitor command takes no args
...
rm extra new line
fix lint errors
return after close
fix, simplify test
2019-11-05 09:51:55 -05:00
Drew Bailey
c7b633b6c1
lock in sub select
...
rm redundant lock
wip to use framing
wip switch to stream frames
2019-11-05 09:51:54 -05:00
Drew Bailey
fb23c1325d
fix deadlock issue, switch to frames envelope
2019-11-05 09:51:54 -05:00
Drew Bailey
17d876d5ef
rename function, initialize log level better
...
underscores instead of dashes for query params
2019-11-05 09:51:53 -05:00
Drew Bailey
8e3915c7fc
use channel instead of empty string to determine close
2019-11-05 09:51:52 -05:00
Drew Bailey
f46fd5b3e1
only look up rpchandler for node if we have nodeid
...
fix some comments and nomad monitor -h output
2019-11-05 09:51:51 -05:00
Drew Bailey
a45ae1cd58
enable json formatting, use queryoptions
2019-11-05 09:51:49 -05:00
Drew Bailey
976c43157c
remove log_writer
...
prefix output with proper spacing
update gzip handler, adjust first byte flow to allow gzip handler bypass
wip, first stab at wiring up rpc endpoint
2019-11-05 09:51:48 -05:00
Drew Bailey
0de94466b2
Display error when remote side ended monitor
...
multisink logger
remove usage of logwriter
2019-11-05 09:51:48 -05:00
Drew Bailey
f60e44afc7
Adds nomad monitor command
...
Adds nomad monitor command. Like consul monitor, this command allows you
to stream logs from a nomad agent in real time with a a specified log
level
add endpoint tests
Upgrade go-hclog to latest version
The current version of go-hclog pads log prefixes to equal lengths
so info becomes [INFO ] and debug becomes [DEBUG]. This breaks
hashicorp/logutils/level.go Check function. Upgrading to the latest
version removes this padding and fixes log filtering that uses logutils
Check
2019-11-05 09:51:47 -05:00