How to avoid collecting metrics from some pods/containers in k8s

We run over 4,000 cronjobs per day in AWS EKS, and the total number of metrics in the Netdata database is growing at a rate of 300,000 per day.
How can I avoid collecting metrics from cronjob pods or filter them by pod name?

Hi, @Sergey_Diatlov. Try adding to Child netdata.conf the following:

        [plugin:cgroups]
        enable by default cgroups names matching =  !*cronjob* *

Note: You may need to replace !*cronjob* with a different pattern. Check your instance names and choose something unique to reliably exclude cron jobs.

I think we should disable collecting cronjobs by default. Thanks for raising this issue.

Hi, @ilyam8. Thank you! It works