-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[processor/resourcedetectionprocessor] Add a more general and flexible detector #34556
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Our customer has a use case: they want to add some attributes from a remote HTTP Server. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
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: