I think I'll post a new question for this.
Yes I tried this, even with comma separated string, and it still sends CPU metrics. I also, tried metrics_interval
set to 0 as well to completely stop the metrics from sending to Elasticsearch from APM side, and it still sent data.
I also saw some git issues opened for disabling APM metrics and I also saw this post, APM Disabling Metrics Issue. I'm not sure to what extent this issue is resolved, but for Python Flask web apps it doesn't work. Could you please test it manually as well just to confirm the issue?