Add multiple repository example to github input readme

This commit is contained in:
Daniel Nelson 2019-08-19 19:08:38 -07:00
parent 47a41071df
commit edb05b58a0
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
2 changed files with 10 additions and 4 deletions

View File

@ -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 = ""

View File

@ -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 = ""