Problem Statement
collector-contrib/processor/resourcedetectionprocessor/internal/tencent/cvm implements a resource detector for Tencent Cloud CVM (Cloud Virtual Machine) instances. There is currently no equivalent in go-contrib/detectors/, which means Tencent Cloud detection is only available to collector-contrib pipelines and not to any Go SDK user.
Proposed Solution
Add a new detectors/tencent package implementing the Tencent Cloud CVM detector as a resource.Detector, ported from the collector-contrib implementation, so that collector-contrib/processor/resourcedetectionprocessor can delegate to it and any other Go SDK user can adopt it.
Prior Art
Additional Context
What the collector-contrib detector does:
- Queries the Tencent Cloud Instance Metadata Service.
- Emits:
cloud.provider (tencent_cloud), cloud.platform (tencent_cloud_cvm), cloud.region, cloud.account.id, cloud.availability_zone, host.id, host.name, host.type.
Problem Statement
collector-contrib/processor/resourcedetectionprocessor/internal/tencent/cvmimplements a resource detector for Tencent Cloud CVM (Cloud Virtual Machine) instances. There is currently no equivalent ingo-contrib/detectors/, which means Tencent Cloud detection is only available to collector-contrib pipelines and not to any Go SDK user.Proposed Solution
Add a new
detectors/tencentpackage implementing the Tencent Cloud CVM detector as aresource.Detector, ported from the collector-contrib implementation, so thatcollector-contrib/processor/resourcedetectionprocessorcan delegate to it and any other Go SDK user can adopt it.Prior Art
processor/resourcedetectionprocessor/internal/tencent/cvmAdditional Context
What the collector-contrib detector does:
cloud.provider(tencent_cloud),cloud.platform(tencent_cloud_cvm),cloud.region,cloud.account.id,cloud.availability_zone,host.id,host.name,host.type.