Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#12
#87 was submitted by @freignat91. This PR provides a clean rebase with master, completes the process of renaming stat to stats, and performs minor formatting cleanup.
Features
-f
for streaming on all current stats (using @chrisccoy' single query idea and @subfuzion's coded group-by idea)Verification
amp stats --container
Display containers list with cpu, mem, io, net
amp stats --container -f
Display containers list with cpu, mem, io, net, streaming mode
amp stats --service -f
Display service list with cpu, mem, io, net, streaming mode
(then cpu%, mem% could be greater then 100% in multi nodes env)
amp stats --container --service-name=kafka -f
Display kafka containers list with cpu, mem, io, net, streaming mode
amp stats --task --service-name=kafka -f
Display kafka task list with cpu, mem, io, net
amp stats --task --cpu --mem
Display kafka task list with only cpu, mem
amp stats --node
Display nodes list with cpu, mem, io, net
amp stats --service --service-name=kafka --period 10m -f
Display service kafka cpu, mem, io, net historic from 10 minutes and stream for new data
amp stats --node --period 10m
Display nodes cpu, mem, io, net historic from 10 minutes
All of the following combinations work:
For historic: