See #1755.
Most args and properties are now implemented, but work that remains to be done can be found in various TODOs in src/kapacitor/constants/index.js and /src/kapacitor/reducers/rules.js. This work is primarily determining how to format and delimit args and props (ex. headers for http), uncommenting them, and adding any possible formatting/parsing to the respective service's case in the reducer.
We should also:
alerta to use UI fields instead of TICKscriptpushoverALERT_NODES_ACCESSORS with a dedicated action creator and reducer, which would parse received data for display in the UIplaceholderDoing this would should result in a standardized handler for displaying all alert services fields in the UI and processing via reducers, such that any arbitrary number of args and properties can be displayed and be functional.
Hey @jaredscheib, I've just started digging into tick stack and looking for a way to add custom headers to the alert webhooks, is this something the above would include? Or is that still something that needs to be implemented in kapacitor?
Hi @craig-mulligan, thanks for writing in! I'll be able to look into this question early next week. I'm not sure, off hand. In the meantime, I'd suggest for now that you check out the docs for Kapacitor, and see whether you can determine if that's possible in Kapacitor currently, apart from Chronograf. Kapacitor has a ton of functionality that Chronograf doesn't currently support, and I'm not immediately familiar with this one you're asking about. Let me know what you find, or otherwise I'll respond again when I'm back.
Currently only the post alert handler allows you to add headers. Here's the associated documentation: http://docs.influxdata.com/kapacitor/v1.3/nodes/alert_node/#post.
It might be worthwhile to have Chronograf utilize the endpoint functionality, but that might be a bigger story. Happy to add more color here if there's interest.
@desa, @jaredscheib we shoudl be able to utilize endpoint via the KapacitorProperties here https://github.com/influxdata/chronograf/blob/master/chronograf.go#L514
Thanks for the quick responses 馃挴 For extra context I'd like to add headers so I can hook it up to a an sns service but I imagine there are a lot of usecases.
I maybe able to lend a hand but I'll wait till @jaredscheib is back and we have a clearer picture.
Thanks @desa and @goller for the insight.
@craig-mulligan Do you mean specifically that you'd like to be able to set custom headers using the http alert in the Chronograf UI here:

Seems like what's required is uncommenting (as referred to in the OP) the endpoint and header properties in ui/src/kapacitor/constants/index.js and determining how to implement header delimiting, per the the TODO comment there. We may also want to provide for the ability to add multiple endpoints with headers. And the UI for these properties. The Chronograf server is already ready to receive these properties.
Let me know if this would address your inquiry, and thanks again.
Yes, custom headers is all I currently need, but multiple endpoints I'm sure would be useful too.
@jaredscheib Hey, sorry to trouble you. But it seems we can add header on the UI when we using an post handler already. But we can only add one pair of key value. How can we add multi pairs header?
@whyou5945 thanks for writing in. @russorat can help field this question for you!
@jaredscheib Thanks a lot. @russorat could u please have a look of my question?
@russorat
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
bump
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. Feel free to reopen if this issue is still important to you. Thank you for your contributions.