Agent puts thousands of files in data folder

percona-agent 1.0.7 puts thousands of files named mm_, qan_ and sysconfig_* in /usr/local/percona/percona-agent/data and fills up the disk.

Agent restart helps.

percona-agent.log has nothing interesting.

How can we solve this?

This usually occurs when agent fails to send data to cloud. Agent collects all data in data folder and sends it to cloud.
Do you have to restart every time ? Is data appearing properly through web ? Can you please show me the complete percona agent log along with /usr/local/percona-agent/data directory listing.