-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[process-agent] Implement human readable check output #11480
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
5b23978
[process-agent] Implement human readable check output
xornivore 9fc9bb6
[WIP][process-agent] Add human readable output to real time checks (#…
mbotarro a857e6b
Reformat some templates for brevity
xornivore e56e5d6
Add process state and switches info
xornivore 616543d
Human readable timestamps
xornivore c7c378e
Container addresses
xornivore 6469de4
Humanize bytes
xornivore 346666f
Add basic host info output
xornivore 3ea0ef1
Add release note
xornivore 50ccbb9
Fix timestamps (in ms since epoch) and improve io stats output
xornivore 84bf24a
Uppercase RSS and VMS
xornivore 01a5d4f
Address review feedback - error on incompatible type and crlf fix for…
xornivore 51713cc
Reorganize host info output in the templates
xornivore e1756b5
Fix container timestamps (in seconds) and improve cpupct helper
xornivore 9519ab9
Remove Image and Name from output - they are deprecated fields in the…
xornivore File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we plan to add other output types? Boolean might not be the best choice if so.
For context, many CLIs use a
-o <format>
flag, so we might want an enum for the output format. The other consideration is that the core agent check has two flags to control the output,--json
and--table
, and--json
supersedes--table
(so that is similar to what we're doing here)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the
-o
suggestionThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's stick with
--json
bool for now, may not be the most extensible but there is consistency with status command in the core agent. Other formats could be interesting, but having one machine-readable format can be sufficient for now.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the record, the core agent also has
--table
, which we might want to add in the future. Their solution to the problem is having--json
take precedence over--table