chronograf/kapacitor
Christopher Henn c5ff500748 Fix leaking sockets in Kapacitor client
Every Kapacitor client (`github.com/influxdata/kapacitor/client/v1`)
instantiates its own `http.Transport`, unless one is provided. A
`http.Transport` will cache socket connections for future use, which
leaves connections open.

Chronograf creates a new Kapacitor client upon every request for several
endpoints. Thus each time these endpoints were hit, new connections
would be opened but never closed until Chronograf is shut down.

These changes pass a singleton `http.Transport` when creating new
Kapacitor clients, so that connections are reused while Chronograf is
running.
2018-08-31 14:11:13 -07:00
..
alerts.go Fix translation of pushover, http, tcp, log, exec alerts to tickscript 2017-12-12 18:20:38 -06:00
alerts_test.go Fix translation of pushover, http, tcp, log, exec alerts to tickscript 2017-12-12 18:20:38 -06:00
ast.go Rename AlertHandlers to AlertNodes 2017-11-30 16:16:44 -08:00
ast_test.go Rename AlertHandlers to AlertNodes 2017-11-30 16:16:44 -08:00
client.go Fix leaking sockets in Kapacitor client 2018-08-31 14:11:13 -07:00
client_test.go Only add stateChangesOnly to new rules 2018-04-04 14:26:16 -07:00
data.go
data_test.go
errors.go
http_out.go
influxout.go Update kapacitor alerts to cast to float before sending to influx 2017-12-01 11:53:28 -06:00
influxout_test.go Update kapacitor alerts to cast to float before sending to influx 2017-12-01 11:53:28 -06:00
kapa_client.go
kapa_client_benchmark_test.go Update kapacitor tickscript generation to use alert handlers 2017-11-30 16:32:47 -06:00
kapa_client_test.go Update kapacitor tickscript generation to use alert handlers 2017-11-30 16:32:47 -06:00
operators.go Update kapacitor tickscript generation to use alert handlers 2017-11-30 16:32:47 -06:00
pipeline.go
pipeline_test.go Add second test case to TestPipelienJSONDeadman 2018-01-08 14:08:08 -05:00
tickscripts.go
tickscripts_test.go Merge branch 'master' into multiple-event-handlers 2017-12-05 16:18:01 -08:00
triggers.go Only add stateChangesOnly to new rules 2018-04-04 14:26:16 -07:00
triggers_test.go
validate.go
validate_test.go
vars.go Update TICKscripts to not have .Group templates when no group by 2018-01-08 17:44:01 -06:00
vars_test.go Add boolean thresholds for kapacitor threshold alerts 2017-12-01 08:11:04 -06:00