-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new webhooks plugin that superseed github and rollbar plugins.
closes #1289 Signed-off-by: François de Metz <[email protected]> Signed-off-by: Cyril Duez <[email protected]> Rename internals struct. Signed-off-by: François de Metz <[email protected]> Signed-off-by: Cyril Duez <[email protected]> Update changelog. Signed-off-by: François de Metz <[email protected]> Signed-off-by: Cyril Duez <[email protected]> Update READMEs and CHANGELOG. Signed-off-by: François de Metz <[email protected]> Signed-off-by: Cyril Duez <[email protected]> Update SampleConfig. Update the config format. Update telegraf config. Update the webhooks README. Update changelog. Update the changelog with an upgrade path. Update default ports. Fix indent. Check for nil value on AvailableWebhooks. Check for CanInterface.
- Loading branch information
1 parent
25848c5
commit 9fefb8e
Showing
18 changed files
with
302 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Webhooks | ||
|
||
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 | ||
``` | ||
|
||
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: | ||
|
||
```sh | ||
$ cp config.conf.new /etc/telegraf/telegraf.conf | ||
$ sudo service telegraf start | ||
``` | ||
|
||
## Available webhooks | ||
|
||
- [Github](github/) | ||
- [Rollbar](rollbar/) | ||
|
||
## Adding new webhooks plugin | ||
|
||
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. |
13 changes: 2 additions & 11 deletions
13
plugins/inputs/github_webhooks/README.md → plugins/inputs/webhooks/github/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.