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

V5-agent自监控如何写 #11

Open
siyiys opened this issue Dec 2, 2021 · 0 comments
Open

V5-agent自监控如何写 #11

siyiys opened this issue Dec 2, 2021 · 0 comments

Comments

@siyiys
Copy link

siyiys commented Dec 2, 2021

agent版本:n9e-agentd-5.0.0-rc8
agent有个指标是:agent_running,我把机器都打了标签。如env=prod。
参考prometheus的写法:
absent(agent_running{env="prod"}) == 1
数据查询有问题,直接关闭一个agent,查询不出来,还是空值。
如果指定机器IP则可以查询出来:
absent(agent_running{env="prod", ident="192.168.1.2"}) == 1
请问需要如何写agent自监控语句 ?

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

No branches or pull requests

1 participant