[processor/resourcedetectionprocessor] Add a more general and flexible detector #34556
Labels
enhancement
New feature or request
processor/resourcedetection
Resource detection processor
Sponsor Needed
New component seeking sponsor
Stale
Component(s)
processor/resourcedetection
Is your feature request related to a problem? Please describe.
Currently
resourcedetectionprocessor
has built-in aws, azure, consul, docker, k8snode, system and so on rich out-of-the-box detection. Those detectors all rely on third-party components, and adding new detectors requires the user to add an implementation of the new detector in the otel-col-contrib library. Therefore, a more flexible approach is needed.Describe the solution you'd like
This proposal is intended to refer to a more flexible, general-purpose approach to detection, similar to the prometheus HTTP SD config, where users simply implement a custom interface and return it in a specified format.
This feature will be on the
processor/resourcedetectionprocessor/internal/http
directory, and the following configuration items are provided:the response of the http should be returned as json(contains real attributes and their values) , Examples:
Based on the above results, the
http detector
will append or overridedatacenter=idc01
in the resource value in telemetry data.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: