influxdata / influxdata/kapacitor

Passing array of variables to kapacitor template

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

Description

Hi, I am using Kapacitor template and I need to pass in different variable sin the input json similar to this

[
{"varName": {"type" : "string", "value" : "value1" }},
{"varName": {"type" : "string", "value" : "value2" }}
]

My goal is to iterate the template with multiple values . is it possible with the above way or is there is a different way of doing it.

Contributor guide

Open the contributing guide

Research direction

Start by reading Kapacitor's template variable and input JSON documentation, then inspect the existing template parsing and variable-handling entry points. Confirm whether arrays of variables are supported and define the expected iteration behavior before identifying an appropriate test; done means the supported input format and resulting template behavior are documented and verified.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.