# How to reduce APM transactions and metrics?

**URL:** <https://discuss.elastic.co/t/how-to-reduce-apm-transactions-and-metrics/215206>\
**Category:** APM\
**Tags:** python\
**Created:** [January 15, 2020, 8:52pm UTC](https://discuss.elastic.co/t/how-to-reduce-apm-transactions-and-metrics/215206 "2020-01-15T20:52:27Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![EZprogramming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ezprogramming/32/57291_2.png) [@EZprogramming](https://discuss.elastic.co/u/EZprogramming)\
**Post date:** [January 20, 2020, 9:19pm UTC](https://discuss.elastic.co/t/how-to-reduce-apm-transactions-and-metrics/215206/7 "2020-01-20T21:19:14Z")

</div>

> [@basepi](#):
>
> Hmm, you might have to show your `apm-server.yml` , perhaps you have a typo?

I think I'll post a new question for this.

> [@basepi](#):
>
> For the `DISABLE_METRICS` , the config [needs to be a comma separated string, not a list](https://www.elastic.co/guide/en/apm/agent/python/current/configuration.html#config-disable_metrics):
> 
> ```auto
> app.config['ELASTIC_APM'] = {
> 'SERVICE_NAME': 'FLASK-APP-PROJECT',
> 'SECRET_TOKEN': '***',
> 'SERVER_URL': '***',
> 'DISABLE_METRICS': '*.cpu.*,system.memory.*,system.process.memory.*'
> }
> 
> ```

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](https://discuss.elastic.co/t/unable-to-disable-apm-via-environment-variable/180558/3). 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?

---

_[View the full topic](https://discuss.elastic.co/t/how-to-reduce-apm-transactions-and-metrics/215206)._
