Charlie Voiselle
b35ee8070e
Change tabs to spaces in nomad monitor help text
2020-09-14 15:08:30 -04:00
Charlie Voiselle
c16c69a858
Typo fix
...
Synopsis needs to start with uppercase to match other commands
2020-01-08 10:44:00 -05:00
Danielle Lancashire
c91f8da7f0
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
f2e2efac38
add server-id to -h output
2019-11-21 16:01:09 -05:00
Drew Bailey
1c301bd368
Allows a node uuid prefix to be passed in
2019-11-21 14:51:48 -05:00
Drew Bailey
fb49f3c35b
add server-id to monitor specific server
2019-11-14 09:53:41 -05:00
Drew Bailey
33ba36acbd
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
676800f03a
address feedback
2019-11-05 09:51:56 -05:00
Drew Bailey
f74bd99b2a
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
f8eaf1f5af
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
58117c03c4
fix deadlock issue, switch to frames envelope
2019-11-05 09:51:54 -05:00
Drew Bailey
6bf8617d02
rename function, initialize log level better
...
underscores instead of dashes for query params
2019-11-05 09:51:53 -05:00
Drew Bailey
a72bd5cf65
use channel instead of empty string to determine close
2019-11-05 09:51:52 -05:00
Drew Bailey
c8d60dd6f9
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
e7589301ea
enable json formatting, use queryoptions
2019-11-05 09:51:49 -05:00
Drew Bailey
12819975ee
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
a828c92403
Display error when remote side ended monitor
...
multisink logger
remove usage of logwriter
2019-11-05 09:51:48 -05:00
Drew Bailey
74cfdf55bb
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