-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] Support specific fields when creating service groups (#142201) #143881
[APM] Support specific fields when creating service groups (#142201) #143881
Conversation
Pinging @elastic/apm-ui (Team:APM) |
...ver/routes/alerts/rule_types/transaction_duration/register_transaction_duration_rule_type.ts
Outdated
Show resolved
Hide resolved
b25d4a5
to
f17ffca
Compare
aggregationType: ruleParams.aggregationType, | ||
transactionDurationField: field, | ||
}), | ||
...getSourceFieldsAgg(), |
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.
using a top hits agg with a lot of buckets is very expensive. if there is a way to only do this for actual alerts that should fire I would recommend it.
…-ref HEAD~1..HEAD --fix'
40c3684
to
e4c4743
Compare
…-ref HEAD~1..HEAD --fix'
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.
LGTM, just some suggestions
x-pack/plugins/apm/public/components/app/service_groups/service_group_save/select_services.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/public/components/app/service_groups/service_group_save/select_services.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/server/routes/alerts/rule_types/anomaly/get_anomalous_event_source_fields.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/public/components/app/service_groups/service_group_save/select_services.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/server/routes/alerts/rule_types/get_source_fields.ts
Outdated
Show resolved
Hide resolved
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.
Mostly just nits. lgtm
x-pack/plugins/apm/server/routes/alerts/rule_types/get_source_fields.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/server/routes/alerts/rule_types/anomaly/get_anomalous_event_source_fields.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/server/routes/alerts/rule_types/anomaly/register_anomaly_rule_type.ts
Outdated
Show resolved
Hide resolved
...ver/routes/alerts/rule_types/transaction_duration/register_transaction_duration_rule_type.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/server/routes/alerts/rule_types/anomaly/register_anomaly_rule_type.ts
Outdated
Show resolved
Hide resolved
) { | ||
return { | ||
source_fields: { | ||
top_hits: { |
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.
Can you change this to top_metrics
agg?
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.
With top_metrics
we can't get all the labels.*
fields, unless they are all enumerated in the agg. top_hits
will get all labels.*
without having to know all the field names in advance.
x-pack/plugins/apm/public/components/app/service_groups/service_group_save/select_services.tsx
Outdated
Show resolved
Hide resolved
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
ESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
* main: (41 commits) [api-docs] Daily api_docs build (elastic#144212) Add readonly view to role management (elastic#143893) [api-docs] Daily api_docs build (elastic#144208) [APM] Adds button group to navigate to "All services" (elastic#142911) Update react-query to ^4.12.0 (main) (elastic#139986) [APM] Support specific fields when creating service groups (elastic#142201) (elastic#143881) [api-docs] Daily api_docs build (elastic#144203) [ts] add stub index.d.ts in @kbn/ui-shared-deps-npm [Synthetics] Fix failing Synthetics Integration test (elastic#144175) chore(NA): remove @types/pkg link creation when generating a new package (elastic#144200) [Osquery] Update schema to v5.5.1 (elastic#144090) [ci] remove github-checks-reporter (elastic#144193) [8.6][ML Inference] Verify pipeline usage before deletion (elastic#144053) [ts] ts refs cache was removed, remove capture task Added Rollups CCS Test (elastic#144074) [auto] migrate existing plugin/package configs [ts] stop building @types packages in bootstrap skip failing test suite (elastic#142762) skip failing test suite (elastic#144186) [Fleet] Show Add Fleet Server instead of add agent when adding agent from agent policy (elastic#144105) ...
Closes #142201
Closes #143792
Closes #143861
Support for service group fields
agent.name
service.name
service.language.name
service.environment
labels.*
Query suggestions
Client-side validation
param validation in route
Rule types persist required fields in alert
Fix for latency threshold buckets
x-pack/plugins/apm/server/routes/alerts/rule_types/transaction_duration/register_transaction_duration_rule_type.ts
now uses amulti_terms
agg and iterates thru each combination ofservice.name
,service.environment
, andtransaction.type
to test the transaction duration against the defined threshold.