influxdata / influxdata/kapacitor

Add name() function to lambda expressions that returns the measurement name of the point.

Open
#1,490 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

Adding this function will allow Kapacitor to manipulate the measurement name of the data like it can for fields and tags.

Something like this is what I have in mind:

```
// Convert the measurement to a tag
|eval(lambda: name())
.as('measurement')
.tags('measurement')
```

See https://community.influxdata.com/t/appears-there-is-a-kapacitor-memory-leak-with-child-process-udf/1668/2 for a discussion where this feature would have greatly helped

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Start by locating lambda expressions and the existing field and tag accessors, then use the eval example as the behavioral guide; done means name() exposes the point's measurement name so it can be converted into a tag.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
data-engineering
Issue type
Feature
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.