func init() { inputs.Add("disk", func() telegraf.Input { return &DiskStats{ps: &systemPS{}} }) inputs.Add("diskio", func() telegraf.Input { return &DiskIOStats{ps: &systemPS{}, SkipSerialNumber: true} }) }
func init() { inputs.Add("mem", func() telegraf.Input { return &MemStats{ps: &systemPS{}} }) inputs.Add("swap", func() telegraf.Input { return &SwapStats{ps: &systemPS{}} }) }
func init() { inputs.Add("disk", func() inputs.Input { return &DiskStats{ps: &systemPS{}} }) inputs.Add("diskio", func() inputs.Input { return &DiskIOStats{ps: &systemPS{}} }) }
func init() { inputs.Add("varnish", func() telegraf.Input { return &Varnish{ run: varnishRunner, } }) }
func init() { inputs.Add("udp_listener", func() telegraf.Input { return &UdpListener{ UDPPacketSize: UDP_PACKET_SIZE, } }) }
func init() { inputs.Add("ntpq", func() telegraf.Input { n := &NTPQ{} n.runQ = n.runq return n }) }
func init() { inputs.Add("docker", func() telegraf.Input { return &Docker{ Timeout: internal.Duration{Duration: time.Second * 5}, } }) }
func init() { inputs.Add("mongodb", func() telegraf.Input { return &MongoDB{ mongos: make(map[string]*Server), } }) }
func init() { inputs.Add("graylog", func() telegraf.Input { return &GrayLog{ client: &RealHTTPClient{}, } }) }
func init() { inputs.Add("iptables", func() telegraf.Input { ipt := new(Iptables) ipt.lister = ipt.chainList return ipt }) }
func init() { inputs.Add("statsd", func() telegraf.Input { return &Statsd{ MetricSeparator: "_", } }) }
func init() { inputs.Add("httpjson", func() telegraf.Input { return &HttpJson{ client: &RealHTTPClient{}, } }) }
func init() { inputs.Add("http_listener", func() telegraf.Input { return &HTTPListener{ ServiceAddress: ":8186", } }) }
func init() { inputs.Add("influxdb", func() telegraf.Input { return &InfluxDB{ Timeout: internal.Duration{Duration: time.Second * 5}, } }) }
func init() { inputs.Add("kernel", func() telegraf.Input { return &Kernel{ statFile: "/proc/stat", } }) }
func init() { inputs.Add("raindrops", func() telegraf.Input { return &Raindrops{http_client: &http.Client{Transport: &http.Transport{ ResponseHeaderTimeout: time.Duration(3 * time.Second), }}} }) }
func init() { inputs.Add("statsd", func() telegraf.Input { return &Statsd{ MetricSeparator: "_", AllowedPendingMessages: defaultAllowPendingMessage, } }) }
func init() { inputs.Add("hddtemp", func() telegraf.Input { return &HDDTemp{ Address: defaultAddress, Devices: []string{"*"}, } }) }
func init() { inputs.Add("zfs", func() telegraf.Input { return &Zfs{ sysctl: sysctl, zpool: zpool, } }) }
func init() { inputs.Add("udp_listener", func() telegraf.Input { return &UdpListener{ ServiceAddress: ":8092", AllowedPendingMessages: 10000, } }) }
func init() { inputs.Add("cloudwatch", func() telegraf.Input { ttl, _ := time.ParseDuration("1hr") return &CloudWatch{ CacheTTL: internal.Duration{Duration: ttl}, } }) }
func init() { inputs.Add("statsd", func() telegraf.Input { return &Statsd{ ConvertNames: true, UDPPacketSize: UDP_PACKET_SIZE, } }) }
func init() { inputs.Add("processes", func() telegraf.Input { return &Processes{ execPS: execPS, readProcFile: readProcFile, } }) }
func init() { inputs.Add("cpu", func() telegraf.Input { return &CPUStats{ PerCPU: true, TotalCPU: true, ps: &systemPS{}, } }) }
func init() { inputs.Add("varnish", func() telegraf.Input { return &Varnish{ run: varnishRunner, Stats: defaultStats, Binary: defaultBinary, } }) }
func init() { inputs.Add("tcp_listener", func() telegraf.Input { return &TcpListener{ ServiceAddress: ":8094", AllowedPendingMessages: 10000, MaxTCPConnections: 250, } }) }
func init() { inputs.Add("ping", func() telegraf.Input { return &Ping{ pingHost: hostPinger, PingInterval: 1.0, Count: 1, Timeout: 1.0, } }) }
func init() { c := Chrony{} path, _ := exec.LookPath("chronyc") if len(path) > 0 { c.path = path } inputs.Add("chrony", func() telegraf.Input { return &c }) }
func init() { inputs.Add("jolokia", func() telegraf.Input { tr := &http.Transport{ResponseHeaderTimeout: time.Duration(3 * time.Second)} client := &http.Client{ Transport: tr, Timeout: time.Duration(4 * time.Second), } return &Jolokia{jClient: &JolokiaClientImpl{client: client}} }) }
func init() { inputs.Add("httpjson", func() telegraf.Input { return &HttpJson{ client: &RealHTTPClient{}, ResponseTimeout: internal.Duration{ Duration: 5 * time.Second, }, } }) }