From 17f03d5d7d7f07ac3aa0b99ce1689a8e77781085 Mon Sep 17 00:00:00 2001 From: Cyril Duez Date: Thu, 2 Jun 2016 09:56:30 +0200 Subject: [PATCH] Update the webhooks README. --- plugins/inputs/webhooks/README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/inputs/webhooks/README.md b/plugins/inputs/webhooks/README.md index 43985b357..5a42f6ea7 100644 --- a/plugins/inputs/webhooks/README.md +++ b/plugins/inputs/webhooks/README.md @@ -1,6 +1,6 @@ # Webhooks -This is a Telegraf service plugin that start an http server and start multiple webhook listeners. +This is a Telegraf service plugin that start an http server and register multiple webhook listeners. ```sh $ telegraf -sample-config -input-filter webhooks -output-filter influxdb > config.conf.new @@ -18,6 +18,10 @@ $ sudo service telegraf start - [Github](github/) - [Rollbar](rollbar/) -## Adding new webhook services +## Adding new webhooks plugin -TODO +1. Add your webhook plugin inside the `webhooks` folder +1. Your plugin must implement the `Webhook` interface +1. Import your plugin in the `webhooks.go` file and add it to the `Webhooks` struct + +Both [Github](github/) and [Rollbar](rollbar/) are good example to follow.