-
Notifications
You must be signed in to change notification settings - Fork 431
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
add traceectl to tracee #4396
base: main
Are you sure you want to change the base?
add traceectl to tracee #4396
Conversation
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.
Please see comments below.
In addition, please add documentation to traceectl.
As part of the documentation, please also refer to the way the user should start tracee "daemon" (e.g. using NONE output and setting the grpc server address)
What do you think about adding a flag to traceectl version command called |
I believe we wouldn't bother with it. When it's from a released version, it's already short. |
Gonna through this tomorrow. 👍🏻 |
64b8a32
to
21986f0
Compare
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.
Looks great to me, maybe go over the documentation and review it once more
@ShohamBit @yanivagman what do you think about splitting this? Since we already have a working stream command, we could open a PR with just the base root and stream commands to establish a foundation for the upcoming new commands (each added in separate PRs). This approach would make both implementation and review more manageable. |
Hey @geyslan, great thinking, let's discuss this over with @yanivagman |
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.
First pass...
dd19b43
to
2159616
Compare
72ef7d2
to
c8a1060
Compare
refactor traceectl flags refactor version commnad refactor root to align to the new code remove formater and replace with printer create diffrent file for geting and running commands
Description
This PR introduces
traceectl
, a new CLI tool for interacting with Tracee. It implements basic commands for communication with Tracee via gRPC.Key Changes
traceectl
CLI tool.version
metrics
stream
event
bb46978 add policy support to stream, and documented
b8db1e4 fix lint issues
914e3cf fix format issues
b5621e3 move traceectl docs to separte section, refactor traceectl docs
b91674e add makefile for traceectl
03e5820 remove invalid test for output
4bc7c92 fix server flag test and error handeling
876bc9c Add test pkg and mock server for traceectl
5729337 update go.mod and go.sum
5d70de4 add config to traceectl
2b81488 change event command to support new format of tracectl
8a941c0 add support for metrics command
c58a785 added printer pkg
e7aae97 added flags pkg
e55c120 fix version runtime issue
d6e9416 refactor stream command
611b224 refactor traceectl code to be more mantainable
161ebc6 refactor the client pkg
4862d94 refactor metrics command
9e6076b Add traceectl to tracee
611b224 refactor traceectl code to be more mantainable
Testing
Please go over the docs and test it
Related Issues
traceectl
#4419Note: This PR was accidentally closed previously and is now being resubmitted.