influxdata / influxdata/kapacitor

Setting tag in eval not persisted in alerts

Open
#1,618 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

For example tag value is not persisted.
|eval(lambda: string("last_value"))
.as('value')
.keep('value')
.tags('value')
|alert()
.crit(lambda: "value" <= 0)

Now the alert data should have a tag for value along with all the group by. But apparently that is not the case.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the eval, keep, tags, and alert pipeline shown in the report. Trace how the alert data is assembled and verify that the value tag is retained alongside the group-by tags when the behavior is fixed.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.