Skip to content

Commit

Permalink
Set default config values in jenkins input (influxdata#5046)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tenzer authored and Jean-Louis Dupond committed Apr 22, 2019
1 parent 7fc4c1c commit 401b71c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/inputs/jenkins/jenkins.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,10 @@ func mapResultCode(s string) int {

func init() {
inputs.Add("jenkins", func() telegraf.Input {
return &Jenkins{}
return &Jenkins{
MaxBuildAge: internal.Duration{Duration: time.Duration(time.Hour)},
MaxConnections: 5,
MaxSubJobPerLayer: 10,
}
})
}

0 comments on commit 401b71c

Please sign in to comment.