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

支持开启http服务后pushtateway接口后通过配置文件中agent_host_tag从推送的数据中指定agent_hostname的值 #984

Merged
merged 6 commits into from
Jun 27, 2024

Conversation

tianyanli
Copy link
Contributor

categraf 支持开启http服务后pushtateway接口后通过配置文件中agent_host_tag从推送的现有指标中指定一个key提取它的值置换到agent_hostname中,同时也直接动态生效模式,在推送给的指标中增加agent_host_tag的label指定的值就是用于置换的key。ignore_hostname在配置文件中为false才会生效。
动态配置方法
ignore_hostname //用于决定是否忽略主机名
ignore_global_labels //是否忽略标签
agent_host_tag //使用指定的key对应的值置换agent_hostname的值,为空的情况下默认使用categraf hostname配置

@@ -94,6 +94,7 @@ import (
_ "flashcat.cloud/categraf/inputs/whois"
_ "flashcat.cloud/categraf/inputs/xskyapi"
_ "flashcat.cloud/categraf/inputs/zookeeper"
_ "flashcat.cloud/categraf/inputs/iptables"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

怎么还多了一个iptables

@kongfei605 kongfei605 merged commit 07456d1 into flashcatcloud:main Jun 27, 2024
2 of 3 checks passed
@kongfei605
Copy link
Collaborator

Thank you @tianyanli

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