influxdata / influxdata/kapacitor

Multiple HTTP POST endpoint configurations is not working

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

Description

Hello,
I'm trying to add multiple HTTP POST endpoint configurations using environment variables (https://docs.influxdata.com/kapacitor/v1.5/event_handlers/post/#defining-configuration-options-with-environment-variables)

In particular i've added the example variables to the env:
KAPACITOR_HTTPPOST_0_ENDPOINT = "example0"
KAPACITOR_HTTPPOST_0_URL = "http://example-0.com/path"
KAPACITOR_HTTPPOST_0_HEADERS_Example1 = "header1"
KAPACITOR_HTTPPOST_0_HEADERS_Example2 = "header2"

KAPACITOR_HTTPPOST_1_ENDPOINT = "example1"
KAPACITOR_HTTPPOST_1_URL = "http://example-1.com/path"
KAPACITOR_HTTPPOST_1_HEADERS_Example1 = "header1"
KAPACITOR_HTTPPOST_1_HEADERS_Example2 = "header2"

But from the tick script i'm only able to get the first one "example0", for the second one i'm getting:
![image](https://user-images.githubusercontent.com/25660018/124133255-f02c3f00-da81-11eb-90a4-6c33c190df6e.png)

Can you check this issue ?

Contributor guide

Open the contributing guide

Research direction

Start with the Kapacitor HTTP POST event-handler documentation and reproduce the configuration using the listed KAPACITOR_HTTPPOST_0 and KAPACITOR_HTTPPOST_1 environment variables. Check the tick script behavior for both endpoint names and confirm that both configurations are available rather than only example0.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
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.