Skip to content

Commit

Permalink
chore: delete snakecase for aliyun ecs hostname (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongfei605 authored Jun 13, 2024
1 parent 16c4a22 commit beda1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inputs/aliyun/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ func (ins *Instance) makeLabels(point internalTypes.Point, labels ...map[string]
}
addLabel := func(instance interface{}) {
if meta, ok := instance.(*cms20190101.DescribeMonitoringAgentHostsResponseBodyHostsHost); ok {
result[ins.EcsAgentHostTag] = stringx.SnakeCase(*meta.HostName)
result[ins.EcsAgentHostTag] = *meta.HostName
}
}
if instance, ok := ins.metaCache.Get(ins.client.EcsKey(point.InstanceID)); ok {
Expand Down

0 comments on commit beda1a1

Please sign in to comment.