-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HttpPost headers don't work when added via environment variables #2280
Comments
@petetnt thanks for the issue. We will investigate if something was broken here. |
I am running into this as well. I am trying to setup kapacitor in k8. I dumped the config that is in the container to see what it has set. The basic-auth settings might shine some light on the proper env variables. I tried KAPACITOR_HTTPPOST_0_BASIC_AUTH_Password and KAPACITOR_HTTPPOST_0_HEADERS_Accept so far. [[httppost]] I also tried KAPACITOR_HTTPPOST_0_HTTPPOST_BASIC_AUTH_USERNAME without success. |
OK, so kind of stupid on my part. But reading the toml docs (https://toml.io/en/v1.0.0#inline-table) made it super clear. |
closed by: #2653 |
In Kapacitor 1.5.*, The documentation mentions in multiple points that HTTPPost node headers could be set via enviroment variables. For example:
https://docs.influxdata.com/kapacitor/v1.5/event_handlers/post/#defining-configuration-options-with-environment-variables
https://docs.influxdata.com/kapacitor/v1.5/event_handlers/post/#configuring-and-using-multiple-http-post-endpoints
and others. However from my experience it the headers won't get added though they have been as enviromentment variables while ENDPOINT AND URL work just fine.
Example:
TickScript:
Excepted:
Actual
Example 2:
Writing the header inline
TickScript:
Excepted
Actual
Alternatives tried
KAPACITOR_HTTPPOST_0_HEADERS_0_Example1
and similar but those work don't either.The text was updated successfully, but these errors were encountered: