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

agent 加入根据正则表达式排除 metrics 的能力 #58

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

feisuzhu
Copy link

如题

fixes #41

@feisuzhu
Copy link
Author

啊 还有从 agent 上添加 tag 的能力(所有的 metrics 可以让 agent 加几个固定的 tag 再上报给 transfer)

@feisuzhu
Copy link
Author

config 的 ignore 现在变成 map[string]string 了,key 用来匹配metric, value 用来匹配 tags 的字符串

@laiwei
Copy link
Contributor

laiwei commented Jul 13, 2016

👍
请把这个pr,提交到 https://github.com/open-falcon/open-falcon 这个repo吧

另外

"^df.": "^.mount=./docker/.*$",

可以修改为下面这种更明确的形式吗,是一个列表,第一个表示metrics,列表的其余部分都表示一个tag

["^df\\.", "*mount=.*/docker/.*"] 

@feisuzhu
Copy link
Author

feisuzhu commented Jul 13, 2016

@laiwei
后半部分 match 的是类似于 mount=/mnt,fstype=ext4,region=cn 这样完整的 tag string,感觉不用分开了。

open-falcon 的那个 repo 是干啥的没明白,初学 go,能给解释下么
UPDATE:明白了,所有的代码都在那里面了

laiwei added a commit to open-falcon/falcon-plus that referenced this pull request Apr 26, 2017
smartech7 pushed a commit to smartech7/falcon-management-api that referenced this pull request Aug 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.

agent 采集 df 信息的时候希望可以有过滤(这边需要 fstype 的过滤)
2 participants