Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

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 danielnelson committed Nov 28, 2018
1 parent 581772a commit 6d2fb00
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 6d2fb00

Please sign in to comment.