configure timeout for emitting to influxdb
package emitter
import (
+ "time"
+
"code.cloudfoundry.org/lager"
"github.com/concourse/atc/metric"
@@ -36,6 +38,7 @@ func (config *InfluxDBConfig) NewEmitter() metric.Emitter {
Username: config.Username,
Password: config.Password,
InsecureSkipVerify: config.InsecureSkipVerify,
+ Timeout: time.Minute,
})
return &InfluxDBEmitter{
