Skip to content
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 a config to cgoreceiver for suppressing events according to processes' comm #495

Merged
merged 9 commits into from
Apr 4, 2023

Conversation

sanyangji
Copy link
Collaborator

Description

Usage:

receivers:
  cgoreceiver:
    subscribe:
      - name: syscall_exit-writev
    process_filter:
      # the length of a comm should be no more than 16
      comms:
        - "kindling-collec"
        - "containerd"
        - "dockerd"
        - "containerd-shim"

Motivation and Context

The original way of suppressing some processes is that write the processes' name in the code. In this PR, make this configurable.

How Has This Been Tested?

Deploy in k8s and the running log as:
image

Signed-off-by: sanyangji <songyujie@zju.edu.cn>
Signed-off-by: sanyangji <songyujie@zju.edu.cn>
Signed-off-by: sanyangji <songyujie@zju.edu.cn>
@sanyangji sanyangji requested a review from dxsup March 29, 2023 03:58
CHANGELOG.md Outdated Show resolved Hide resolved
Signed-off-by: sanyangji <songyujie@zju.edu.cn>
Signed-off-by: sanyangji <songyujie@zju.edu.cn>
Signed-off-by: sanyangji <songyujie@zju.edu.cn>
@dxsup dxsup changed the title Config suppress comms Add a config to cgoreceiver for suppressing events according to processes' comm Apr 4, 2023
@dxsup dxsup merged commit fe1a52e into KindlingProject:main Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants