Skip to content

feat: anomaly 패키지 구현 #8

Description

@LEESEOJUN-creator

개요

anomaly/ 패키지의 룰 기반 이상 탐지 스케줄러를 구현합니다.

작업 내용

  • AnomalyThresholdProperties — application.yml 임계치 바인딩 (@ConfigurationProperties)
  • AnomalyType — 이상 유형 enum (이미 완료, 내용 확인)
  • AnomalyDetectionService — 30초 스케줄러, 룰 기반 탐지
    • CPU > threshold → CPU_HIGH
    • 메모리 > threshold → MEMORY_HIGH
    • 재시작 >= threshold → POD_RESTART
    • 에러율 > threshold → ERROR_RATE_HIGH
    • OOMKilled / CrashLoopBackOff 이벤트

관련 배경 / 이유

전체 흐름의 시작점, PrometheusService / LokiService / KubernetesService 완료 후 구현

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions