code: func initInfluxDBTicker(ctx context.Context, config *types.InfluxDB) *time.Ticker {
  	pushInterval, err := time.ParseDuration(config.PushInterval)
  	if err != nil {
  		log.FromContext(ctx).Warnf("Unable to parse %s from config.PushInterval: using 10s as the default value", config.PushInterval)
  		pushInterval = 10 * time.Second
  	}
  
  	report := time.NewTicker(pushInterval)
  
  	safe.Go(func() {
  		var buf bytes.Buffer
  		influxDBClient.WriteLoop(report.C, &influxDBWriter{buf: buf, config: config})
  	})
  
  	return report
  }
docs: // initInfluxDBTicker initializes metrics pusher