[aws_ecs_otel] Add ML anomaly detection module#19922
Draft
JM-elastic wants to merge 1 commit into
Draft
Conversation
Add ML anomaly detection module for ECS service CPU and memory utilization.
1d509b8 to
4c7b901
Compare
Contributor
✅ Elastic Docs Style Checker (Vale)No issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
|
✅ All changelog entries have the correct PR link. |
💚 Build Succeeded
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a machine-learning anomaly-detection module (
kibana/ml_module/) to the aws_ecs_otel integration, proposing anomaly detection as an addition alongside the integration's existing dashboards and alert rules. Modeled on thekubernetes_otelML module (#19030).Why — complements the threshold alerts, doesn't duplicate them
The shipped alert rules catch per-entity threshold breaches (a value crossing a fixed line). These ML jobs model each metric per entity against its own history, catching the drift those miss — e.g. a slow memory leak across task recycling before any single task crosses a hard threshold. Each detector's description defers per-entity spikes to the alert rules, the same split
kubernetes_oteluses. The detectors are drawn from the service's own signals and real failure modes — not tailored to any specific workflow.Jobs
aws_ecs_service_resource_anomaly— perServiceName(partitionClusterName):high_meanMemoryUtilization and CPUUtilization.Datafeeds are composite-aggregated — required, because these
metrics-aws.*.otel-*indices containaggregate_metric_doublefields that a plain (non-aggregating) ML datafeed cannot read.Validation
Drafted and validated against live AWS OTel telemetry: the job(s) establish baselines over historical data. The RDS connection-pool-exhaustion case was scored against a known injected incident and detected it on the correct entity (recall/precision/f1 = 1.0).
Methodology, tooling, and the scoring harness: https://github.com/elastic/aws_otel_ml_draft
Notes for reviewers (@elastic/obs-infraobs-integrations)
bucket_span, or thresholds.subscription: basic(matcheskubernetes_otel; ML availability is a deployment concern, not a package condition).ServiceName+ClusterName), not the normalized fields the alert-ruletermFields reference (those are not present in the documents).MemoryUtilizationcan be noisy on some services — a candidate forbucket_spantuning.