[APM] Support specific fields when creating service groups (#142201)#143881
[APM] Support specific fields when creating service groups (#142201)#143881ogupte merged 18 commits intoelastic:mainfrom
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
There was a problem hiding this comment.
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'
cauemarcondes
left a comment
There was a problem hiding this comment.
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
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
sorenlouv
left a comment
There was a problem hiding this comment.
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.
Can you change this to top_metrics agg?
There was a problem hiding this comment.
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.nameservice.nameservice.language.nameservice.environmentlabels.*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.tsnow uses amulti_termsagg and iterates thru each combination ofservice.name,service.environment, andtransaction.typeto test the transaction duration against the defined threshold.