Yoan Blanc
c3928fe360
fixup! vendor: explicit use of hashicorp/go-msgpack
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch >
2020-03-31 09:48:07 -04:00
Yoan Blanc
887f23a351
vendor: explicit use of hashicorp/go-msgpack
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch >
2020-03-31 09:45:21 -04:00
Drew Bailey
549045fcbb
Rename profile package to pprof
...
Address pr feedback, rename profile package to pprof to more accurately
describe its purpose. Adds gc param for heap lookup profiles.
2020-01-09 15:15:10 -05:00
Drew Bailey
db382d3195
provide helpful error, cleanup logic
2020-01-09 15:15:08 -05:00
Drew Bailey
d77b5add6c
RPC server EnableDebug option
...
Passes in agent enable_debug config to nomad server and client configs.
This allows for rpc endpoints to have more granular control if they
should be enabled or not in combination with ACLs.
enable debug on client test
2020-01-09 15:15:07 -05:00
Drew Bailey
328075591f
region forwarding; prevent recursive forwards for impossible requests
...
prevent region forwarding loop, backfill tests
fix failing test
2020-01-09 15:15:06 -05:00
Drew Bailey
390e22e421
move shared structs out of client and into nomad
2020-01-09 15:15:05 -05:00
Drew Bailey
57dc0c6a46
test pprof headers and profile methods
...
tidy up, add comments
clean up seconds param assignment
2020-01-09 15:15:04 -05:00
Drew Bailey
c28e5ad036
warn when enabled debug is on when registering
...
m -> a receiver name
return codederrors, fix query
2020-01-09 15:15:04 -05:00
Drew Bailey
fb1b4cdc26
Server request forwarding for Agent.Profile
...
Return rpc errors for profile requests, set up remote forwarding to
target leader or server id for profile requests.
server forwarding, endpoint tests
2020-01-09 15:15:03 -05:00
Drew Bailey
240c0ee0ec
agent pprof endpoints
...
wip, agent endpoint and client endpoint for pprof profiles
agent endpoint test
2020-01-09 15:15:02 -05:00
Drew Bailey
79411c5e0e
coordinate closing of doneCh, use interface to simplify callers
...
comments
2019-11-05 11:44:26 -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
bb2a7f4338
address feedback, fix gauge metric name
2019-11-05 09:51:57 -05:00
Drew Bailey
dc977dc8e6
move forwarded monitor request into helper
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
6bf8617d02
rename function, initialize log level better
...
underscores instead of dashes for query params
2019-11-05 09:51:53 -05:00
Drew Bailey
1176fc0227
address feedback, use agent_endpoint instead of monitor
2019-11-05 09:51:53 -05:00