influxdata / influxdata/kapacitor

Generate random ID for influxdbOutNode

Open
#2,659 4 comments 0 reactions 1 assignee View on GitHub

@docmerlin is already working on this.

Since Dec 16, 2021.

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

Description

Is there a way to generate a random ID through a lambda function or anything of the sort? Something Like

|influxDBOut()
.create()
.database(outputDB)
.retentionPolicy(outputRP)
.measurement(outputMeasurement)
.tag('alertName', name)
.tag('triggerType', triggerType)
.tag('acked', 'false')
.tag('location', 'Building 1')
.tag('id', rand.Intn(100))

There was an issue raised about this before but no answer. Any suggestions?

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.