influxdata / influxdata/kapacitor
Multiple HTTP POST endpoint configurations is not working
- 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:

Can you check this issue ?
Contributor 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