[8.19] [APM][OTel] Change the alerts query to include environment not defined value (#219228)#219955
Merged
crespocarlos merged 1 commit intoelastic:8.19from May 5, 2025
Merged
Conversation
…d value (elastic#219228) Closes elastic#217914 ## Summary This PR fixes the issue with the alerts filtering when the service environment is not defined.  ## Testing - Using synthtrace (any scenario) inject some data: for example: ``` node scripts/synthtrace simple_trace --scenarioOpts pipeline=apmToOtel --live --uniqueIds ``` - Change the scenario - the same one, so the same services have one synthrace env and one `undefined` (set the environment to `undefined`) - Run the scenario again in a different terminal (also using `live` without closing the previous one) - Configure some alert rules (that will generate alerts for both), for example, latency > 1ms or error count > 0 - Check the environment drop-down and the alerts tab (should behave the same as in the description example here - the env filter should be applied to the table results and the alert count badge - similar on the service inventory page - there we should retest with the elastic#217899 changes when merged )  (cherry picked from commit bb025a8) # Conflicts: # x-pack/solutions/observability/plugins/apm/common/environment_filter_values.ts
Contributor
|
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
Page load bundle
|
miloszmarcinkowski
approved these changes
May 5, 2025
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
mainto8.19:Questions ?
Please refer to the Backport tool documentation