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
Add KQL filtering in APM rules #163825
Add KQL filtering in APM rules #163825
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Pinging @elastic/apm-ui (Team:APM) |
Pinging @elastic/actionable-observability (Team: Actionable Observability) |
@maryam-saeidi I have addressed this in this PR.
|
@maryam-saeidi to continue discussion from slack, do we need to change the naming in this rule? Or we would change it in Threshold rule? |
Copying comment from previous PR: (comment)
@maryam-saeidi That's a good point. I think it is upto the user to add right filters. We have similar behaviour when creating a rule from "Hosts" view. Even though user has selected a host, and started creating a rule, they can add different hosts in filter. The difference is that the rule name is not auto-generated in this case. @sqren What are your thoughts around this? |
@maryam-saeidi Ah, when creating a rule from the service view, it automatically adds service name as filter too. That is not the case with the infra rules. |
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.
Great job! 👏🏻
Thanks for coming up with a solution to use searchConfiguration
parameter name everywhere 🎉
Regarding my comment on the previous PR, I talked to @sqren and @boriskirov about it. The result of the discussion was that we have the same issue now as well, when a user tries to create a rule in one service and then changes the service in the rule parameters, the auto-generated name should be adjusted along the way. But at the moment, this decision is made based on where the user is coming from and is not adjusted automatically afterward. The other argument considered users responsible for adjusting the rule name and tag if they create a rule for other services from another service's page. |
Thanks for sharing, @maryam-saeidi ! |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @benakansara |
Resolves elastic/apm-dev#929 Adds KQL filtering to the following APM rules: - Latency threshold rule - Failed transaction rate rule - Error count threshold rule ### KQL Filter ON <img width="598" alt="Screenshot 2023-07-31 at 16 45 13" src="https://github.com/elastic/kibana/assets/69037875/277ac4c1-a542-4efe-bd0c-c2bccfac1a6c"> ### KQL Filter OFF <img width="602" alt="Screenshot 2023-07-31 at 16 47 23" src="https://github.com/elastic/kibana/assets/69037875/f790ed56-d83d-4732-aa3e-4d7778926fbb"> ### Note Opening a new PR as elastic#163307 pinged many teams after merging to main. Removing teams from reviewers list doesn't unsubscribe them from notifications.
Resolves https://github.com/elastic/apm-dev/issues/929 Adds KQL filtering to the following APM rules: - Latency threshold rule - Failed transaction rate rule - Error count threshold rule ### KQL Filter ON <img width="598" alt="Screenshot 2023-07-31 at 16 45 13" src="https://github.com/elastic/kibana/assets/69037875/277ac4c1-a542-4efe-bd0c-c2bccfac1a6c"> ### KQL Filter OFF <img width="602" alt="Screenshot 2023-07-31 at 16 47 23" src="https://github.com/elastic/kibana/assets/69037875/f790ed56-d83d-4732-aa3e-4d7778926fbb"> ### Note Opening a new PR as #163307 pinged many teams after merging to main. Removing teams from reviewers list doesn't unsubscribe them from notifications.
Resolves https://github.com/elastic/apm-dev/issues/929
Adds KQL filtering to the following APM rules:
KQL Filter ON
KQL Filter OFF
Note
Opening a new PR as #163307 pinged many teams after merging to main. Removing teams from reviewers list doesn't unsubscribe them from notifications.