Open nondevops opened 3 months ago
实际应该要显示: 10:29:45 aliyun_acs_ecs_dashboard_cpu_other_minimum agent_hostname=rocketmq-server.0305048183.xxf ... 10:29:45 aliyun_acs_ecs_dashboard_cpu_other_average agent_hostname=es-cluster-logs-hot.0305058967.xxf ...
label处理中把 . 忽略了 。 下个版本,hostname 会保持原样上报
@kongfei605 另外还发现一个BUG,已经指定了只获取北京地域的资源,但是从结果来看同时也把上海地域的资源也一起获取了。 相关参数: region="cn-beijing" endpoint="metrics-vpc.cn-beijing.aliyuncs.com"
@kongfei605 可否提个需求,能否将云服务器ECS的私有IP捕获出来,通过instance_id不好区分谁是谁,同时也希望像其他采集器一样支持hostname,这样就可以将ident组装成hostname-ip了,当前只能hostname.
@kongfei605 另外还发现一个BUG,已经指定了只获取北京地域的资源,但是从结果来看同时也把上海地域的资源也一起获取了。 相关参数: region="cn-beijing" endpoint="metrics-vpc.cn-beijing.aliyuncs.com"
阿里云的cms接口就是这样,请求一个region,返回全球的数据。
@kongfei605 可否提个需求,能否将云服务器ECS的私有IP捕获出来,通过instance_id不好区分谁是谁,同时也希望像其他采集器一样支持hostname,这样就可以将ident组装成hostname-ip了,当前只能hostname.
私有IP获取了,就会有一个单独的label了,不用hostname-ip这种组装了。
私有IP获取可以支持,不过获取元信息都需要额外的权限,单靠一个文档说明未必够用。这个也是现在放到企业版先支持的原因,有专门的人员去配置。
v0.3.70 已经去掉了hostname的snake case
Relevant config.toml
Logs from categraf
System info
rocky.linux.8.5
Docker
No response
Steps to reproduce
修改input.aliyun相关配置 开启调试
Expected behavior
希望将"."显示出来,input.cpu 等默认采集对象是不会忽略"."的。
Actual behavior
input.aliyun agent._hostname标签主机名有“.”的情况被忽略了,不显示"."
Additional info
No response