-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[cmd/opampsupervisor] Supervisor fails healthcheck with bootstrap config #31897
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
It appears that there is a network error. Can you confirm if your agent is exposing the 57806 port? |
Well, that's exactly it. The agent does not expose that port, but it should, since the config is generated and run by the supervisor. receivers:
otlp:
protocols:
http:
endpoint: "localhost:58262"
exporters:
debug:
verbosity: basic
extensions:
opamp:
instance_uid: "01HSERAG6T06AFVGQT5ZYC0GEK"
server:
ws:
endpoint: "ws://localhost:58263/v1/opamp"
tls:
insecure: true
service:
pipelines:
traces:
receivers: [otlp]
exporters: [debug]
extensions: [opamp] I think the "no-op" config/bootstrap config that the collector runs just needs the health extension config merged into it. I feel like part of the problem is that the bootstrap config overwrites the collector config (they use the same file), so this is always the initial config for the collector. Maybe that should be its own separate issue, though. |
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. |
It is a bit frustrating that the supervisor generates an I tried wo workaround by setting up a configuration in the supervisor's YAML file for the collector with a correct path which merged the missing healhtcheck, but this also does not work |
I believe this ended up fixed in #34159 |
Component(s)
cmd/opampsupervisor
What happened?
Description
When running the bootstrap config, the agent doesn't have the healthcheck configuration configured. After bootstrapping, the collector still uses the bootstrap config, which causes the healthcheck to fail every health check interval.
Steps to Reproduce
Start supervisor. Wait for health check to occur.
Expected Result
Agent is considered healthy.
Actual Result
Collector version
5bf424d
Environment information
No response
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: