influxdata / kapacitor

Open source framework for processing, monitoring, and alerting on time series data
MIT License
2.31k stars 493 forks source link

Multiple HTTP POST endpoint configurations is not working #2587

Open donatoferrulli opened 3 years ago

donatoferrulli commented 3 years ago

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

Can you check this issue ?

ricrug commented 3 years ago

Damn, I've lost my mind without being able to figure it out! I hope it will be solved soon! The documentation is not clear about it, it just says that it can be done but... it doesn't work!