[9.2] [Infra][Hosts] Fix inventory Network Inbound and Outbound alert rules (#251855)#252691
Merged
Merged
Conversation
…elastic#251855) fixes elastic#251854 ## Summary This PR fixes the network inbound and outbound alert executors. There were basically 2 issues: - OTel multi-dimension aggregation: The alert was not handling the filter-wrapped aggregation pattern used by `rxV2`/`txV2` metrics, causing the query to fail. - Missing bits-to-bytes conversion: The threshold conversion (÷8) was implemented for `rx`/`tx` but missing for `rxV2`/`txV2`, causing threshold comparisons to be off by 8x. Otel <img width="800" height="702" alt="image" src="https://github.com/user-attachments/assets/14481a73-3481-4605-b554-64bf645810ee" /> ECS <img width="800" height="813" alt="image" src="https://github.com/user-attachments/assets/82096690-ea1a-4372-a3de-65565fe35b9d" /> ### how to test - Otel: - Run: `./forge --dataset hosts --format otel --interval 30s` (https://github.com/simianhacker/simian-forge) - Create Network Inbound and Outbound metrics in the Infra UI - ECS: - Run `node scripts/synthtrace infra_hosts_ecs.ts --live` - Create Network Inbound and Outbound metrics in the Infra UI --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit c3c9c78)
Contributor
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Page load bundle
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto9.2:Questions ?
Please refer to the Backport tool documentation