Skip to content

V5-agent自监控如何写 #11

@siyiys

Description

@siyiys

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自监控语句 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions