Skip to content
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

[8.14] [Telemetry][Security Solution] Use the proper index to query builtin alerts (#187859) #188233

Closed
wants to merge 1 commit into from

Conversation

szaffarano
Copy link
Contributor

@szaffarano szaffarano commented Jul 12, 2024

Backport

This will backport the following commits from main to 8.14:

Questions ?

Please refer to the Backport tool documentation

…alerts (#187859)

#177263 changed the way
`telemetry-prebuilt-rule-alerts` get data from elastic, but it changed
the index used to run the queries. This PR fixes it using the proper
index.

(cherry picked from commit a120c51)
@elasticmachine
Copy link
Contributor

elasticmachine commented Jul 12, 2024

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Jest Integration Tests #6 / telemetry tasks telemetry-prebuilt-rule-alerts should manage runtime errors searching endpoint metrics

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
aiops 485 487 +2
apm 1674 1675 +1
cloudSecurityPosture 433 436 +3
console 246 247 +1
dashboard 444 445 +1
dashboardEnhanced 71 72 +1
data 507 496 -11
dataVisualizer 658 647 -11
discover 789 792 +3
discoverEnhanced 41 42 +1
embeddable 116 117 +1
embeddableEnhanced 41 43 +2
enterpriseSearch 2269 2277 +8
eventAnnotationListing 504 505 +1
fileUpload 218 217 -1
fleet 995 996 +1
imageEmbeddable 132 133 +1
infra 1464 1465 +1
inputControlVis 77 78 +1
kibanaReact 268 216 -52
lens 1402 1405 +3
links 132 133 +1
lists 287 288 +1
logsExplorer 727 729 +2
maps 1163 1165 +2
ml 2015 2002 -13
observabilityAIAssistant 94 91 -3
observabilityAIAssistantApp 230 236 +6
presentationPanel 96 97 +1
searchPlayground 172 181 +9
securitySolution 5451 5465 +14
slo 721 726 +5
stackAlerts 144 145 +1
synthetics 981 980 -1
unifiedHistogram 137 138 +1
unifiedSearch 246 247 +1
uptime 582 583 +1
urlDrilldown 43 44 +1
visTypeMarkdown 21 19 -2
visTypeVega 310 258 -52
visTypeVislib 161 109 -52
visualizations 413 414 +1
total -119

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/apm-synthtrace 47 49 +2
@kbn/cell-actions 44 46 +2
@kbn/content-management-utils 125 126 +1
@kbn/core-http-router-server-internal 49 50 +1
@kbn/core-http-server 189 191 +2
@kbn/core-http-server-internal 74 77 +3
@kbn/discover-utils 41 40 -1
@kbn/doc-links 75 77 +2
@kbn/elastic-assistant 142 147 +5
@kbn/elastic-assistant-common 217 218 +1
@kbn/es-types 26 25 -1
@kbn/esql-utils 19 22 +3
@kbn/presentation-publishing 149 153 +4
@kbn/search-connectors 3216 3691 +475
@kbn/security-solution-side-nav 23 24 +1
@kbn/slo-schema 171 174 +3
@kbn/test-jest-helpers 105 103 -2
@kbn/ui-shared-deps-src 45 46 +1
actions 292 294 +2
alerting 826 827 +1
elasticAssistant 31 32 +1
embeddable 453 454 +1
fleet 1177 1181 +4
observability 669 670 +1
observabilityAIAssistant 249 251 +2
searchPlayground 9 10 +1
slo 62 63 +1
total +516

Any counts in public APIs

Total count of every any typed public API. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats any for more detailed information.

id before after diff
@kbn/core-http-server 1 2 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
aiops 410.9KB 412.9KB +1.9KB
alerting 91.6KB 91.9KB +317.0B
apm 3.2MB 3.2MB +637.0B
canvas 1016.4KB 1016.7KB +366.0B
cases 475.8KB 475.9KB +113.0B
cloudExperiments 52.4KB 52.6KB +205.0B
cloudSecurityPosture 451.3KB 452.2KB +973.0B
console 439.1KB 439.9KB +841.0B
controls 202.1KB 202.0KB -38.0B
dashboard 395.5KB 395.7KB +143.0B
dataViewFieldEditor 175.2KB 175.3KB +176.0B
dataViewManagement 139.2KB 139.1KB -14.0B
dataVisualizer 656.7KB 656.7KB -18.0B
discover 638.0KB 638.4KB +434.0B
enterpriseSearch 2.7MB 2.7MB +21.1KB
expressionError 14.3KB 14.3KB -38.0B
fileUpload 951.8KB 951.7KB -94.0B
fleet 1.3MB 1.3MB +1.8KB
imageEmbeddable 64.7KB 64.8KB +37.0B
indexManagement 620.0KB 620.1KB +86.0B
infra 1.5MB 1.5MB -3.2KB
ingestPipelines 367.3KB 367.3KB -14.0B
kibanaOverview 52.8KB 52.8KB -14.0B
kibanaReact 165.6KB 197.2KB +31.6KB
lens 1.4MB 1.4MB +216.0B
lists 141.0KB 141.6KB +548.0B
logsExplorer 1.1MB 1.1MB -92.0B
maps 2.9MB 2.9MB -206.0B
ml 4.1MB 4.1MB +697.0B
mockIdpPlugin 28.0KB 28.1KB +15.0B
monitoring 463.8KB 463.9KB +9.0B
observability 286.7KB 286.5KB -162.0B
observabilityAIAssistant 18.6KB 17.8KB -891.0B
observabilityAIAssistantApp 149.3KB 150.8KB +1.5KB
observabilityAiAssistantManagement 87.2KB 87.3KB +122.0B
osquery 1.0MB 1.0MB +286.0B
presentationPanel 8.9KB 9.0KB +53.0B
profiling 407.6KB 407.9KB +388.0B
searchNotebooks 11.7KB 13.2KB +1.5KB
searchPlayground 151.8KB 166.1KB +14.3KB
security 585.0KB 584.9KB -36.0B
securitySolution 14.6MB 15.2MB ⚠️ +596.1KB
serverlessSearch 455.3KB 461.6KB +6.2KB
slo 723.2KB 724.8KB +1.6KB
stackAlerts 82.5KB 82.3KB -204.0B
stackConnectors 527.4KB 527.4KB +26.0B
synthetics 1.0MB 1.0MB -3.1KB
textBasedLanguages 164.7KB 166.7KB +2.0KB
transform 393.0KB 393.0KB +53.0B
triggersActionsUi 1.6MB 1.6MB +205.0B
uiActionsEnhanced 135.8KB 135.8KB +36.0B
unifiedDocViewer 60.6KB 60.6KB -3.0B
unifiedHistogram 73.6KB 73.5KB -113.0B
unifiedSearch 225.8KB 225.9KB +36.0B
uptime 462.7KB 468.2KB +5.5KB
visTypeMarkdown 7.0KB 5.8KB -1.1KB
visTypeTimeseries 513.3KB 513.3KB -2.0B
visTypeVega 1.8MB 1.8MB +31.5KB
visTypeVislib 339.7KB 371.5KB +31.8KB
visualizations 274.3KB 274.3KB -52.0B
total +745.9KB

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
@kbn/core-http-server-internal 9 10 +1
apm 125 122 -3
observability 14 15 +1
observabilityAIAssistant 25 26 +1
total -0

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
aiAssistantManagementSelection 4.3KB 4.4KB +18.0B
banners 9.5KB 9.4KB -38.0B
console 32.1KB 32.6KB +513.0B
core 406.3KB 406.8KB +568.0B
dashboard 36.9KB 37.0KB +36.0B
data 416.6KB 416.6KB +44.0B
dataVisualizer 23.8KB 23.9KB +54.0B
discover 34.9KB 35.0KB +89.0B
embeddable 66.3KB 66.5KB +144.0B
embeddableEnhanced 10.7KB 10.7KB +61.0B
enterpriseSearch 48.5KB 48.6KB +123.0B
expressionXY 38.8KB 38.9KB +52.0B
fleet 159.1KB 160.4KB +1.3KB
infra 102.3KB 102.4KB +47.0B
kbnUiSharedDeps-npmDll 6.3MB 6.3MB -22.0B
kbnUiSharedDeps-srcJs 2.9MB 3.2MB ⚠️ +247.0KB
lens 47.4KB 47.4KB +55.0B
maps 50.4KB 50.5KB +92.0B
ml 77.1KB 77.1KB -9.0B
monitoring 24.2KB 24.2KB +54.0B
navigation 33.1KB 33.2KB +107.0B
observability 150.6KB 150.9KB +284.0B
observabilityAIAssistant 47.0KB 46.2KB -839.0B
observabilityAIAssistantApp 12.6KB 13.7KB +1.2KB
observabilityShared 64.4KB 64.4KB +30.0B
presentationPanel 42.0KB 42.1KB +95.0B
profiling 18.3KB 18.3KB +42.0B
searchConnectors 23.9KB 24.9KB +1.0KB
searchPlayground 4.9KB 6.5KB +1.6KB
securitySolution 82.1KB 82.9KB +747.0B
securitySolutionEss 15.4KB 15.5KB +61.0B
securitySolutionServerless 19.0KB 19.0KB +10.0B
serverlessSearch 19.2KB 19.1KB -84.0B
slo 22.0KB 22.0KB -62.0B
stackAlerts 24.7KB 24.7KB +54.0B
synthetics 19.8KB 19.4KB -394.0B
triggersActionsUi 120.4KB 121.0KB +622.0B
unifiedHistogram 10.0KB 10.1KB +54.0B
uptime 22.3KB 22.4KB +152.0B
visTypeMarkdown 6.9KB 7.0KB +141.0B
visTypeVislib 12.5KB 12.5KB -1.0B
total +254.9KB
Unknown metric groups

API count

id before after diff
@kbn/aiops-components 36 51 +15
@kbn/apm-synthtrace 47 49 +2
@kbn/cell-actions 62 64 +2
@kbn/content-management-utils 191 193 +2
@kbn/core-http-router-server-internal 49 50 +1
@kbn/core-http-server 475 481 +6
@kbn/core-http-server-internal 86 89 +3
@kbn/core-saved-objects-api-server 354 356 +2
@kbn/discover-utils 63 62 -1
@kbn/doc-links 75 77 +2
@kbn/elastic-assistant 168 174 +6
@kbn/elastic-assistant-common 232 233 +1
@kbn/es-types 26 25 -1
@kbn/esql-utils 21 24 +3
@kbn/presentation-publishing 178 182 +4
@kbn/search-connectors 3216 3691 +475
@kbn/security-solution-side-nav 29 30 +1
@kbn/slo-schema 171 174 +3
@kbn/test-jest-helpers 137 133 -4
@kbn/ui-shared-deps-src 54 55 +1
@kbn/unified-data-table 151 152 +1
actions 298 300 +2
alerting 858 859 +1
console 40 38 -2
data 3287 3290 +3
elasticAssistant 45 46 +1
embeddable 559 560 +1
fleet 1298 1302 +4
observability 678 679 +1
observabilityAIAssistant 251 253 +2
searchPlayground 15 18 +3
slo 62 63 +1
total +541

async chunk count

id before after diff
infra 19 18 -1
observabilityAIAssistant 3 2 -1
observabilityAIAssistantApp 5 6 +1
searchPlayground 5 7 +2
securitySolution 93 95 +2
uptime 15 16 +1
total +4

ESLint disabled in files

id before after diff
osquery 1 0 -1

ESLint disabled line counts

id before after diff
@kbn/core-i18n-browser-mocks 0 1 +1
aiAssistantManagementSelection 6 5 -1
aiops 24 25 +1
elasticAssistant 34 38 +4
fleet 44 45 +1
monitoring 18 20 +2
observabilityAIAssistant 7 5 -2
observabilityAIAssistantApp 9 12 +3
osquery 115 114 -1
securitySolution 514 516 +2
total +10

miscellaneous assets size

id before after diff
securitySolution 4.5MB 6.2MB ⚠️ +1.7MB

References to deprecated APIs

id before after diff
cases 14 15 +1
searchPlayground 1 0 -1
uptime 5 1 -4
total -4

Total ESLint disabled count

id before after diff
@kbn/core-i18n-browser-mocks 0 1 +1
aiAssistantManagementSelection 6 5 -1
aiops 24 25 +1
elasticAssistant 34 38 +4
fleet 57 58 +1
monitoring 25 27 +2
observabilityAIAssistant 10 8 -2
observabilityAIAssistantApp 9 12 +3
osquery 116 114 -2
securitySolution 591 593 +2
total +9

History

@szaffarano szaffarano deleted the szaffarano/backport/8.14/pr-187859 branch July 15, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport ci:project-deploy-observability Create an Observability project Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants