-
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
[APM]Latency threshold rule's threshold context variable should use milliseconds instead of microseconds #150234
Conversation
…illiseconds instead of microseconds
Pinging @elastic/apm-ui (Team:APM) |
@@ -65,7 +65,7 @@ describe('registerTransactionDurationRuleType', () => { | |||
'Avg. latency is 5,500 ms in the last 5 mins for opbeans-java. Alert when > 3,000 ms.', | |||
transactionType: 'request', | |||
serviceName: 'opbeans-java', | |||
threshold: 3000000, | |||
threshold: 3000, |
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.
We did the reverse change in #112366. Please double check why we did so and if this change breaks something.
As discussed: I'd love to have an api test (or e2e test) that reproduces this problem.
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.
We did the reverse change in #112366
I don't think we should show the alerts in microseconds, since the only option we offer when creating an alert is a threshold in milliseconds.
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.
What was the reason for the change in #112366?
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.
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.
All right. Change looks fine. Did you find a way to test this?
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.
I'll look into it during test plan.
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
closes #125323
I couldn't test it yet, since alerts are firing with any context variable. I'll hold on to merge this until I can fully test it.