hastic-zzz/hastic-server

Alerting doesn't work for Anomaly analytic units

rozetko opened this issue · 2 comments

Steps to reproduce

  • configure alerting channel (webhooks / Prometheus Alertmanager)
  • create Anomaly analytic unit
  • click Apply
  • see detections on the graph
  • enable Webhooks
  • wait

Expected behavior

Alerts start coming to the configured alerting channel (btw, it works with Threshold analytic units)

Actual behavior

Alerts never come

Possible reason:

Data coming for detection is stored in the bucket with dynamic size (depends on configured Alpha value), maybe this amount of data is not enough for the detector to find anything. e.g. bucket size for Alpha == 0.5 is 4, for Alpha == 0.1 - 22

fixed in the related PRs