Skip to content

categraf上报ip的时候,配置了HOSTIP环境变量,只有第一次读取环境变量获取ip,后面更新的时候又走自动获取ip的逻辑了 #1436

Description

@sevensunner

Relevant config.toml

ignore

Logs from categraf

ignore

System info

categraf 0.5.6 centos

Docker

No response

Steps to reproduce

1.配置环境变量HOSTIP
2.重启categraf,可以看到基础设施列表IP一栏显示了环境变量HOSTIP给出的ip,过了一会再看的时候,又变成了自动探测的ip
3.
...

Expected behavior

只要配置了HOSTIP,categraf上报的ip始终是HOSTIP,而不是会变成自动探测的ip

Actual behavior

最终会变成自动探测的ip

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions