-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[APM] Revert multi-metric ML job. (#114961)
- Loading branch information
1 parent
8aeaa5a
commit 008421f
Showing
12 changed files
with
76 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
x-pack/plugins/ml/server/models/data_recognizer/modules/apm_transaction/manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
{ | ||
"id": "apm_transaction", | ||
"title": "APM", | ||
"description": "Detect anomalies in transactions from your APM services for metric data.", | ||
"description": "Detect anomalies in transactions from your APM services.", | ||
"type": "Transaction data", | ||
"logoFile": "logo.json", | ||
"defaultIndexPattern": "apm-*-metric,metrics-apm*", | ||
"defaultIndexPattern": "apm-*-transaction", | ||
"query": { | ||
"bool": { | ||
"filter": [ | ||
{ "term": { "processor.event": "metric" } }, | ||
{ "term": { "metricset.name": "transaction" } } | ||
{ "term": { "processor.event": "transaction" } }, | ||
{ "exists": { "field": "transaction.duration" } } | ||
] | ||
} | ||
}, | ||
"jobs": [ | ||
{ | ||
"id": "apm_metrics", | ||
"file": "apm_metrics.json" | ||
"id": "high_mean_transaction_duration", | ||
"file": "high_mean_transaction_duration.json" | ||
} | ||
], | ||
"datafeeds": [ | ||
{ | ||
"id": "datafeed-apm_metrics", | ||
"file": "datafeed_apm_metrics.json", | ||
"job_id": "apm_metrics" | ||
"id": "datafeed-high_mean_transaction_duration", | ||
"file": "datafeed_high_mean_transaction_duration.json", | ||
"job_id": "high_mean_transaction_duration" | ||
} | ||
] | ||
} |
53 changes: 0 additions & 53 deletions
53
x-pack/plugins/ml/server/models/data_recognizer/modules/apm_transaction/ml/apm_metrics.json
This file was deleted.
Oops, something went wrong.
95 changes: 0 additions & 95 deletions
95
...ins/ml/server/models/data_recognizer/modules/apm_transaction/ml/datafeed_apm_metrics.json
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
...s/data_recognizer/modules/apm_transaction/ml/datafeed_high_mean_transaction_duration.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"job_id": "JOB_ID", | ||
"indices": [ | ||
"INDEX_PATTERN_NAME" | ||
], | ||
"query": { | ||
"bool": { | ||
"filter": [ | ||
{ "term": { "processor.event": "transaction" } }, | ||
{ "exists": { "field": "transaction.duration.us" } } | ||
] | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...ver/models/data_recognizer/modules/apm_transaction/ml/high_mean_transaction_duration.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"job_type": "anomaly_detector", | ||
"groups": [ | ||
"apm" | ||
], | ||
"description": "Detect transaction duration anomalies across transaction types for your APM services.", | ||
"analysis_config": { | ||
"bucket_span": "15m", | ||
"detectors": [ | ||
{ | ||
"detector_description": "high duration by transaction type for an APM service", | ||
"function": "high_mean", | ||
"field_name": "transaction.duration.us", | ||
"by_field_name": "transaction.type", | ||
"partition_field_name": "service.name" | ||
} | ||
], | ||
"influencers": [ | ||
"transaction.type", | ||
"service.name" | ||
] | ||
}, | ||
"analysis_limits": { | ||
"model_memory_limit": "32mb" | ||
}, | ||
"data_description": { | ||
"time_field": "@timestamp" | ||
}, | ||
"model_plot_config": { | ||
"enabled": true | ||
}, | ||
"custom_settings": { | ||
"created_by": "ml-module-apm-transaction" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.