* Add mandrill webhook. * Store the id of the msg as part of event. Signed-off-by: Cyril Duez <cyril@stormz.me> Signed-off-by: François de Metz <francois@stormz.me> * Decode body to get the mandrill_events. Signed-off-by: Cyril Duez <cyril@stormz.me> Signed-off-by: François de Metz <francois@stormz.me> * Handle HEAD request. Signed-off-by: Cyril Duez <cyril@stormz.me> Signed-off-by: François de Metz <francois@stormz.me> * Add the README. Signed-off-by: Cyril Duez <cyril@stormz.me> Signed-off-by: François de Metz <francois@stormz.me> * Add mandrill_webhooks to the README. Signed-off-by: Cyril Duez <cyril@stormz.me> Signed-off-by: François de Metz <francois@stormz.me> * Update changelog. Signed-off-by: Cyril Duez <cyril@stormz.me> Signed-off-by: François de Metz <francois@stormz.me> * Run gofmt. Signed-off-by: Cyril Duez <cyril@stormz.me> Signed-off-by: François de Metz <francois@stormz.me> |
||
|---|---|---|
| .. | ||
| github | ||
| mandrill | ||
| rollbar | ||
| README.md | ||
| webhooks.go | ||
| webhooks_test.go | ||
README.md
Webhooks
This is a Telegraf service plugin that start an http server and register multiple webhook listeners.
$ telegraf -sample-config -input-filter webhooks -output-filter influxdb > config.conf.new
Change the config file to point to the InfluxDB server you are using and adjust the settings to match your environment. Once that is complete:
$ cp config.conf.new /etc/telegraf/telegraf.conf
$ sudo service telegraf start
Available webhooks
Adding new webhooks plugin
- Add your webhook plugin inside the
webhooksfolder - Your plugin must implement the
Webhookinterface - Import your plugin in the
webhooks.gofile and add it to theWebhooksstruct