-
Notifications
You must be signed in to change notification settings - Fork 527
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
Fixes for Elastic Agent v2 changes #9681
Conversation
If fleet.hosts isn't set in ESS, assume Fleet Server is co-located and use "https://localhost:8220".
If the runner exits prematurely, log the error; don't wait for the runner to be reloaded before logging the error.
Lies |
This pull request does not have a backport label. Could you fix it @axw? 🙏
NOTE: |
@Mergifyio backport 8.6 |
✅ Backports have been created
|
📚 Go benchmark reportDiff with the
report generated with https://pkg.go.dev/golang.org/x/perf/cmd/benchstat |
* internal/beater: set fallback fleet.hosts If fleet.hosts isn't set in ESS, assume Fleet Server is co-located and use "https://localhost:8220". * internal/beatcmd: improve logging on runner exit If the runner exits prematurely, log the error; don't wait for the runner to be reloaded before logging the error. (cherry picked from commit fc31a49)
* internal/beater: set fallback fleet.hosts If fleet.hosts isn't set in ESS, assume Fleet Server is co-located and use "https://localhost:8220". * internal/beatcmd: improve logging on runner exit If the runner exits prematurely, log the error; don't wait for the runner to be reloaded before logging the error. (cherry picked from commit fc31a49) Co-authored-by: Andrew Wilkins <[email protected]>
Tested on ESS 8.6. APM endpoint is accessible. Source maps are applied to RUM errors. |
Motivation/summary
If
fleet.hosts
isn't set in ESS, assume Fleet Server is co-located and use "https://localhost:8220". This is a workaround, and may alternatively be fixed by elastic/elastic-agent#1802.If the runner stops with an error, log the error immediately, rather than when reloading. Otherwise the error cannot be observed unless there is an input or output change.
Checklist
- [ ] Update CHANGELOG.asciidoc- [ ] Update package changelog.yml (only if changes toapmpackage
have been made)- [ ] Documentation has been updatedHow to test these changes
Related issues
None