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

[APM] Default env for creating rule outside of APM app #107942

Merged
merged 4 commits into from
Aug 10, 2021

Conversation

dgieselaar
Copy link
Member

Closes #107610.

Sets environment to "All" when rules are created outside of the APM app.

Note that the transaction duration rule cannot be created at all due to serviceName not being available, which it needs. As this needs design, I've opened a separate issue for this: #107940

@dgieselaar dgieselaar requested a review from a team as a code owner August 9, 2021 17:36
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Aug 9, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@cauemarcondes
Copy link
Contributor

@dgieselaar would it be possible to fix the transaction type too?
Screen Shot 2021-08-09 at 15 41 22

@dgieselaar dgieselaar added release_note:skip Skip the PR/issue when compiling release notes v7.15.0 labels Aug 10, 2021
@dgieselaar
Copy link
Member Author

@cauemarcondes added a fix for that as well, looks like it's a 7.15 only bug.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
apm 4.3MB 4.3MB +872.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@@ -90,6 +91,8 @@ export function TransactionDurationAlertTrigger(props: Props) {
threshold: 1500,
windowSize: 5,
windowUnit: 'm',
environment: ENVIRONMENT_ALL.value,
transactionType: transactionTypes[0],
}
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could make it clear to users that they cannot create alerts from here:

Suggested change
);
);
if(!metadata?.serviceName) {
return <EuiCallout>Creating alerts from here is not supported. Please go to the [APM app](link))</EuiCallout>
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mentioned in #107940

Copy link
Member

@sorenlouv sorenlouv Aug 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I saw. I was hoping we could do something for 7.15 - like adding a callout to at least let the user know that they cannot create alerts.
Implementing the free form field with suggestions is much better but likely to be a bigger task and not something we'll get around to before FF.

Copy link
Member

@sorenlouv sorenlouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dgieselaar dgieselaar added the auto-backport Deprecated - use backport:version if exact versions are needed label Aug 10, 2021
@dgieselaar dgieselaar merged commit 7d6a2b5 into elastic:master Aug 10, 2021
@dgieselaar dgieselaar deleted the create-rule-no-context branch August 10, 2021 13:40
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 10, 2021
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v7.15.0
Projects
None yet
5 participants