forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Fixing module datafeed overrides (elastic#78925) (elastic#78999)
- Loading branch information
1 parent
292af55
commit ea018b3
Showing
27 changed files
with
756 additions
and
589 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 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
2 changes: 1 addition & 1 deletion
2
x-pack/plugins/ml/server/models/data_recognizer/modules/metricbeat_system_ecs/logo.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,3 +1,3 @@ | ||
{ | ||
"icon": "metricbeatApp" | ||
"icon": "metricbeatApp" | ||
} |
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
26 changes: 15 additions & 11 deletions
26
...s/data_recognizer/modules/metricbeat_system_ecs/ml/datafeed_max_disk_utilization_ecs.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,16 +1,20 @@ | ||
{ | ||
"job_id": "JOB_ID", | ||
"indices": [ | ||
"INDEX_PATTERN_NAME" | ||
], | ||
"query": { | ||
"bool": { | ||
"filter": { | ||
"term": { "event.dataset": "system.filesystem" } | ||
}, | ||
"must": { | ||
"exists": { "field": "system.filesystem.used.pct" } | ||
"job_id": "JOB_ID", | ||
"indices": [ | ||
"INDEX_PATTERN_NAME" | ||
], | ||
"query": { | ||
"bool": { | ||
"filter": { | ||
"term": { | ||
"event.dataset": "system.filesystem" | ||
} | ||
}, | ||
"must": { | ||
"exists": { | ||
"field": "system.filesystem.used.pct" | ||
} | ||
} | ||
} | ||
} | ||
} |
18 changes: 10 additions & 8 deletions
18
...els/data_recognizer/modules/metricbeat_system_ecs/ml/datafeed_metricbeat_outages_ecs.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,13 +1,15 @@ | ||
{ | ||
"job_id": "JOB_ID", | ||
"indices": [ | ||
"INDEX_PATTERN_NAME" | ||
], | ||
"query": { | ||
"bool": { | ||
"must": { | ||
"exists": { "field": "event.dataset" } | ||
"job_id": "JOB_ID", | ||
"indices": [ | ||
"INDEX_PATTERN_NAME" | ||
], | ||
"query": { | ||
"bool": { | ||
"must": { | ||
"exists": { | ||
"field": "event.dataset" | ||
} | ||
} | ||
} | ||
} | ||
} |
106 changes: 54 additions & 52 deletions
106
...ver/models/data_recognizer/modules/metricbeat_system_ecs/ml/high_mean_cpu_iowait_ecs.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,54 +1,56 @@ | ||
{ | ||
"job_type": "anomaly_detector", | ||
"description": "Metricbeat CPU: Detect unusual increases in cpu time spent in iowait (ECS)", | ||
"groups": ["metricbeat"], | ||
"analysis_config": { | ||
"bucket_span": "10m", | ||
"detectors": [ | ||
{ | ||
"detector_description": "high mean system.cpu.iowait.pct", | ||
"function": "high_mean", | ||
"field_name": "system.cpu.iowait.pct", | ||
"partition_field_name": "host.name", | ||
"custom_rules": [ | ||
{ | ||
"actions": [ | ||
"skip_result" | ||
], | ||
"conditions": [ | ||
{ | ||
"applies_to": "actual", | ||
"operator": "lt", | ||
"value": 0.25 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"influencers": [ | ||
"host.name" | ||
] | ||
}, | ||
"analysis_limits": { | ||
"model_memory_limit": "25mb" | ||
}, | ||
"data_description": { | ||
"time_field": "@timestamp", | ||
"time_format": "epoch_ms" | ||
}, | ||
"custom_settings": { | ||
"created_by": "ml-module-metricbeat-system", | ||
"custom_urls": [ | ||
{ | ||
"url_name": "Host overview", | ||
"time_range": "3h", | ||
"url_value": "dashboards#/view/79ffd6e0-faa0-11e6-947f-177f697178b8-ecs?_g=(time:(from:\u0027$earliest$\u0027,mode:absolute,to:\u0027$latest$\u0027))&_a=(filters:!(),query:(language:kuery,query:\u0027host.name:\u0022$host.name$\u0022\u0027))" | ||
}, | ||
{ | ||
"url_name": "Raw data", | ||
"url_value": "discover#/?_g=(refreshInterval:(pause:!t,value:0),time:(from:\u0027$earliest$\u0027,mode:absolute,to:\u0027$latest$\u0027))&_a=(columns:!(_source),index:\u0027INDEX_PATTERN_ID\u0027,interval:auto,query:(language:kuery,query:'event.dataset:\u0022system.cpu\u0022'),sort:!('@timestamp',desc))" | ||
} | ||
] | ||
} | ||
"job_type": "anomaly_detector", | ||
"description": "Metricbeat CPU: Detect unusual increases in cpu time spent in iowait (ECS)", | ||
"groups": [ | ||
"metricbeat" | ||
], | ||
"analysis_config": { | ||
"bucket_span": "10m", | ||
"detectors": [ | ||
{ | ||
"detector_description": "high mean system.cpu.iowait.pct", | ||
"function": "high_mean", | ||
"field_name": "system.cpu.iowait.pct", | ||
"partition_field_name": "host.name", | ||
"custom_rules": [ | ||
{ | ||
"actions": [ | ||
"skip_result" | ||
], | ||
"conditions": [ | ||
{ | ||
"applies_to": "actual", | ||
"operator": "lt", | ||
"value": 0.25 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"influencers": [ | ||
"host.name" | ||
] | ||
}, | ||
"analysis_limits": { | ||
"model_memory_limit": "25mb" | ||
}, | ||
"data_description": { | ||
"time_field": "@timestamp", | ||
"time_format": "epoch_ms" | ||
}, | ||
"custom_settings": { | ||
"created_by": "ml-module-metricbeat-system", | ||
"custom_urls": [ | ||
{ | ||
"url_name": "Host overview", | ||
"time_range": "3h", | ||
"url_value": "dashboards#/view/79ffd6e0-faa0-11e6-947f-177f697178b8-ecs?_g=(time:(from:\u0027$earliest$\u0027,mode:absolute,to:\u0027$latest$\u0027))&_a=(filters:!(),query:(language:kuery,query:\u0027host.name:\u0022$host.name$\u0022\u0027))" | ||
}, | ||
{ | ||
"url_name": "Raw data", | ||
"url_value": "discover#/?_g=(refreshInterval:(pause:!t,value:0),time:(from:\u0027$earliest$\u0027,mode:absolute,to:\u0027$latest$\u0027))&_a=(columns:!(_source),index:\u0027INDEX_PATTERN_ID\u0027,interval:auto,query:(language:kuery,query:'event.dataset:\u0022system.cpu\u0022'),sort:!('@timestamp',desc))" | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.