You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run opampsupervisor(the backend program is OpAMP's sample server), I noticed that EffectivConfig gets cleared, leaving only the contents of ownMetricsCfg and ExtraLocalConfig.
Steps to Reproduce
Fill in the correct configuration to ensure that the opampsupervisor can connect to the backend normally
Start the backend OpAMP sample server
Fill in the effective configuration in local effective.yaml
Start opampsupervisor
Check the otel configuration displayed by the OpAMP UI or view the local file named effective.yaml.
Expected Result
The content I filled in to the local configuration file named effective.yaml will not be cleared after the connection is established.
I know the reason is that the backend server returns an empty remote configuration. However, I believe that the opampsupervisor needs to handle such situations to avoid the issue where configurations get overwritten due to logic errors in the backend.
The text was updated successfully, but these errors were encountered:
The reason for this behavior is that the effective.yaml file is only intended to be written by the Supervisor. Can you explain more about your use case? The Supervisor specification allows for the possibility of using local Collector config along with remote config, would this work for you?
Component(s)
cmd/opampsupervisor
What happened?
Description
When I run
opampsupervisor
(the backend program is OpAMP's sample server), I noticed thatEffectivConfig
gets cleared, leaving only the contents of ownMetricsCfg and ExtraLocalConfig.Steps to Reproduce
opampsupervisor
can connect to the backend normallyeffective.yaml
opampsupervisor
effective.yaml
.Expected Result
The content I filled in to the local configuration file named effective.yaml will not be cleared after the connection is established.
Actual Result
The configuration content I filled in was cleared
Collector version
all
Environment information
Environment
OS: Darwin
Compiler: go 1.21
OpenTelemetry Collector configuration
Log output
No response
Additional context
I know the reason is that the backend server returns an empty remote configuration. However, I believe that the
opampsupervisor
needs to handle such situations to avoid the issue where configurations get overwritten due to logic errors in the backend.The text was updated successfully, but these errors were encountered: