-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Cloud Security] [Alerts] Fix alerts telemetry collector #164757
Conversation
Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security) |
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, one small comment
x-pack/plugins/cloud_security_posture/server/lib/telemetry/collectors/alert_stats_collector.ts
Show resolved
Hide resolved
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
) (cherry picked from commit d18ef2f)
) (#164913) # Backport This will backport the following commits from `main` to `8.10`: - [[Cloud Security] [Alerts] Fix alerts telemetry collector (#164757)](#164757) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Paulo Henrique","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-08-26T04:25:52Z","message":"[Cloud Security] [Alerts] Fix alerts telemetry collector (#164757)","sha":"d18ef2f9797787b481345694b512dd56f40c0b48","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:Cloud Security","backport:prev-minor","v8.10.0","v8.11.0"],"number":164757,"url":"https://github.com/elastic/kibana/pull/164757","mergeCommit":{"message":"[Cloud Security] [Alerts] Fix alerts telemetry collector (#164757)","sha":"d18ef2f9797787b481345694b512dd56f40c0b48"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164757","number":164757,"mergeCommit":{"message":"[Cloud Security] [Alerts] Fix alerts telemetry collector (#164757)","sha":"d18ef2f9797787b481345694b512dd56f40c0b48"}}]}] BACKPORT--> Co-authored-by: Paulo Henrique <[email protected]>
Summary
It potentially closes https://github.com/elastic/security-team/issues/7411
Fixing Telemetry collector for detection rules created within the Cloud Security Posture Findings page. Also, it changes to only send posture-type data when it contains alert data.
Important to note that for 8.10 we are only collecting Rule telemetry for Rules that generated Alerts