influxdata / influxdata/kapacitor

Need more built in functions

Open
#864 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

Hi

Now if I want to caculate mean or stddev, I can use influxql, but influxql will discarde the original fields.
I want to keep the orginal fileds in my alert message.

I found that EvalNode has a property of keep which can preserve original fields, but only sigma can be used in evalnode. Is there any plan to add more functions like mean, sum, max ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the EvalNode implementation and its keep property, then trace how sigma is currently supported and how InfluxQL aggregation affects alert fields. Define the expected behavior for mean, sum, and max while retaining original fields, and verify it with the relevant existing tests or new cases identified during that review.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.