Skip to content

Add Anomaly Detection Baseline Drift Handling #382

Description

@maugauwi-hash

Labels: bug, api-server, observability
Priority: Medium
Estimated Time: 2 hours

Description:
backend/src/anomaly_detection.rs computes a Baseline for alerting via Severity, but a legitimate, sustained traffic shift (e.g., a new product launch) could keep triggering alerts against a stale baseline instead of the baseline adapting.

Tasks:

  • Add a slow-moving baseline update that adapts to sustained (non-anomalous) shifts
  • Distinguish transient spikes from sustained shifts before updating the baseline
  • Add tests for baseline drift adapting correctly over simulated sustained change
  • Document baseline adaptation behavior in docs/anomaly-detection.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions