-
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
Add and support receiver creator endpoint properties #25866
Add and support receiver creator endpoint properties #25866
Conversation
Couple Qs for clarification:
|
The rule/config/resource_attributes* will only be applied to the endpoints* that contains the properties, so it doesn't transfer to any other endpoint evaluation from an unannotated redis pod. This occurs in
Yes, since the |
If it's only applied to the endpoint containing the properties, why do we need to transfer the recievercreator's endpoint discovery configuration to the endpoint itself? I'm talking about the |
For edit: In cases where a receiver's default configuration leads to telemetry, just setting the rule label/annotation is all that's needed.* |
Shouldn't |
I think this may be a general receiver creator use question: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/receivercreator#rule-expressions. The |
32d7799
to
fa9d9b1
Compare
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
fa9d9b1
to
ae8c22a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ae8c22a
to
767b806
Compare
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
@@ -182,10 +190,10 @@ func (obs *observerHandler) OnRemove(removed []observer.Endpoint) { | |||
} | |||
|
|||
for _, rcvr := range obs.receiversByEndpointID.Get(e.ID) { | |||
obs.params.TelemetrySettings.Logger.Info("stopping receiver", zap.Reflect("receiver", rcvr), zap.String("endpoint_id", string(e.ID))) | |||
obs.logger.Info("stopping receiver", zap.Reflect("receiver", rcvr), zap.String("endpoint_id", string(e.ID))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably can peel off this logger change in a separate PR just to make the diff smaller
@@ -135,3 +139,23 @@ func (cfg *Config) Unmarshal(componentParser *confmap.Conf) error { | |||
|
|||
return nil | |||
} | |||
|
|||
func (rt receiverTemplate) copy() receiverTemplate { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move it up to around line 70 to keep it close to the struct definition?
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
767b806
to
e38305d
Compare
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Description:
Adding a feature - These changes add a new boolean
accept_endpoint_properties
config field and mechanism to evaluate remotely specified receiver template configuration by observer endpoint environment content (disabled by default). This feature will allow the receiver creator to add or modify evaluated receiver template config, rules, and resource attributes specified by the applicable observer metadata for the containing endpoint alone.Link to tracking Issue:
#17418
Testing:
Added and updated tests suites.
Documentation:
Updated readme to describe feature.