From edb05b58a0d8258a6be54df89086108f2e66956b Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Mon, 19 Aug 2019 19:08:38 -0700 Subject: [PATCH] Add multiple repository example to github input readme --- plugins/inputs/github/README.md | 7 +++++-- plugins/inputs/github/github.go | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/plugins/inputs/github/README.md b/plugins/inputs/github/README.md index 7227b167d..65fda0301 100644 --- a/plugins/inputs/github/README.md +++ b/plugins/inputs/github/README.md @@ -10,11 +10,14 @@ alternative method for collecting repository information. ```toml [[inputs.github]] ## List of repositories to monitor - repositories = ["influxdata/telegraf"] + repositories = [ + "influxdata/telegraf", + "influxdata/influxdb" + ] ## Github API access token. Unauthenticated requests are limited to 60 per hour. # access_token = "" - + ## Github API enterprise url. Github Enterprise accounts must specify their base url. # enterprise_base_url = "" diff --git a/plugins/inputs/github/github.go b/plugins/inputs/github/github.go index 5c9682e4a..2f31a7268 100644 --- a/plugins/inputs/github/github.go +++ b/plugins/inputs/github/github.go @@ -33,11 +33,14 @@ type GitHub struct { const sampleConfig = ` ## List of repositories to monitor. - repositories = ["influxdata/telegraf"] + repositories = [ + "influxdata/telegraf", + "influxdata/influxdb" + ] ## Github API access token. Unauthenticated requests are limited to 60 per hour. # access_token = "" - + ## Github API enterprise url. Github Enterprise accounts must specify their base url. # enterprise_base_url = ""