Is there a way to automate scavenging?

The data generated by stats stream is taking lot of disk space. I am aware that we need to set appropriate maxAge/maxCount metadata and then run scavenge process periodically.
Is there a better way to automate this process?

IIRC that is “works as designed”. We automate that process basically by using a Kubernetes job, that triggers the scavenge periodically.

Scavenge can be run via a http post see : it includes the curl command.

You can then use whatever scheduler etc that you want.