-
Notifications
You must be signed in to change notification settings - Fork 525
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
apmpackage: add more elasticsearch privileges #6139
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
b09bc14
to
221aacf
Compare
221aacf
to
5335626
Compare
vcsRefShort := vcsRef[:6] | ||
apmServerInstallDir := fmt.Sprintf("./data/elastic-agent-%s/install/apm-server-%s-linux-%s", vcsRefShort, stackVersion, arch) |
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.
there were some changes to elastic-agent which meant we haven't been running with the custom, injected apm-server binary.
/test |
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.
Looks good to me, I'll defer a more in depth review for other members of the team that understand the fleet/agent integration better.
Moving this back into draft as I look into the test failures. Seems to be some kind of test isolation issue. |
We now only install the integration once before running all the tests. We uninstall any existing apm package, which will take care of removing outdated integration index templates.
/test |
Co-authored-by: Silvia Mitter <[email protected]>
* tools: upgrade elastic-package * apmpackage: add privileges for sampled_traces * apmpackage: add config vars for tail sampling * apmpackage: update changelog * systemtest: test tail-sampling with Fleet * systemtest: don't delete integration templates We now only install the integration once before running all the tests. We uninstall any existing apm package, which will take care of removing outdated integration index templates. * Update systemtest/fleet_test.go Co-authored-by: Silvia Mitter <[email protected]> Co-authored-by: Silvia Mitter <[email protected]> (cherry picked from commit fa65ccc)
* tools: upgrade elastic-package * apmpackage: add privileges for sampled_traces * apmpackage: add config vars for tail sampling * apmpackage: update changelog * systemtest: test tail-sampling with Fleet * systemtest: don't delete integration templates We now only install the integration once before running all the tests. We uninstall any existing apm package, which will take care of removing outdated integration index templates. * Update systemtest/fleet_test.go Co-authored-by: Silvia Mitter <[email protected]> Co-authored-by: Silvia Mitter <[email protected]> (cherry picked from commit fa65ccc) Co-authored-by: Andrew Wilkins <[email protected]>
Motivation/summary
Add privileges to the sampled traces data stream in order to refresh indices, querying index stats, and read documents. This data stream holds only non-sensitive information.
Introduce config vars to the integration package for tail-sampling. These are used in a revised system test, which now uses the Fleet integration.
Checklist
- [ ] Documentation has been updatedHow to test these changes
Can't be manually tested yet, needs UI for configuring tail-sampling policies.
Related issues
Closes #5490