Skip to content

cgoreceiver.process_filter.comms 参数不生效 #593

@yanhongchang

Description

@yanhongchang

Describe the bug
在配置文件增加了屏蔽的进程comm,但是发现没有生效。

How to reproduce?
1、集群节点有filebeat日志采集进程。

image

2、配置文件修改:
process_filter:
# the length of a comm should be no more than 16
comms:
- "kindling-collec"
- "containerd"
- "dockerd"
- "containerd-shim"

如上配置增加了"filebeat"等进程comm,如下:
process_filter:
# the length of a comm should be no more than 16
comms:
- "kindling-collec"
- "containerd"
- "dockerd"
- "containerd-shim"
- "filebeat"
- "java"

然后 rollout restart ds/kindling-agent 重启所有pod

What did you expect to see?
如果生效,filebeat相关指标应该会不采集,看不到filebeat相关指标。

What did you see instead?
但是发现还是会有filebeat 服务相关指标:
image

Environment (please complete the following information)

  • Kindling agent version -- v0.8.1
  • Node OS version -- Alibaba Cloud Linux release 3
  • Node Kernel version -- 5.10.23-4
  • Kubernetes version 1.20.4

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions