Skip to content

Add a config to cgoreceiver for suppressing events according to processes' comm#495

Merged
dxsup merged 9 commits intoharmonycloud:mainfrom
sanyangji:comm-config
Apr 4, 2023
Merged

Add a config to cgoreceiver for suppressing events according to processes' comm#495
dxsup merged 9 commits intoharmonycloud:mainfrom
sanyangji:comm-config

Conversation

@sanyangji
Copy link
Copy Markdown
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
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 harmonycloud: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