Kapacitor HTTPPOST content-type config in yml

kapacitor
#1

Kapacitor 1.5.2

Hi,
I’m trying to configure the HTTPPOST parameters in YML config, so far the following settings are working fine:

KAPACITOR_HTTPPOST_0_ENDPOINT=Eventmng
KAPACITOR_HTTPPOST_0_URL=https://events-json.ca.inet:9090
KAPACITOR_HTTPPOST_0_ALERT_TEMPLATE_FILE=/var/lib/kapacitor/post-event.tmpl
KAPACITOR_HTTPPOST_0_BASIC_AUTH_USERNAME=user
KAPACITOR_HTTPPOST_0_BASIC_AUTH_PASSWORD=user1234

But for this one, it’s not being register at all:
KAPACITOR_HTTPPOST_0_HEADERS_CONTENT_TYPE=application/json

the setting is not showing with the kapacitord config command. I tried many ways that I could find as example on the net, but nothing works.

Any idea?
Thanks, Eric

0 Likes