influxdata / influxdata/kapacitor

Sigma Stateful function should have rolling window period

Open
#978 6 comments 14 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

The stateful sigma function is useful in that it computes deviations from the norm easily, but currently it doesn't support limiting the window that it tracks. Meaning it computes the moving mean and stddev for all points seen forever. For it to be more useful, older values need to be forgotten via a moving window. Essentially this should look like the moving_average function but with the sigma pieces added on.

Contributor guide

Open the contributing guide

Research direction

Start by locating the stateful sigma and moving_average function implementations and their tests in the Kapacitor repository. Compare how moving windows are represented and tested, then define done as sigma forgetting values outside the configured rolling window while preserving its moving mean and standard-deviation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
data, stream-processing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.