-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Component(s)
flowlogs-pipeline / enrichment stages
Problem
NetObserv provides excellent collection and aggregation of Kubernetes network flow logs,
but the current pipeline stops at aggregation and visualization. There is no native stage
that detects operational anomalies such as sudden throughput spikes, new/unexpected
service-to-service edges, or latency regressions.
Proposed solution
Introduce an optional "anomaly detection" or "smart enrichment" stage that:
-
Consumes aggregated flow records (from Loki, Kafka, or direct pipeline input).
-
Applies simple streaming statistics (EWMA, z-score, moving average) or lightweight ML models
to compute ananomaly_scoreper (src, dst, namespace, protocol). -
Emits enriched flow records with fields like:
{ "anomaly_score": 0.87, "anomaly_type": "throughput_spike", "baseline_window": "5m" } -
Allows sensitivity tuning through configuration (e.g., YAML or environment variables).
-
Outputs can be visualized in Grafana or fed into alerting systems.
Benefits
-
Extends NetObserv’s analytics capabilities beyond raw metrics.
-
Provides proactive detection of performance regressions or misconfigurations.
-
Stays within observability scope (not IDS/security).