# Is there any documentation on how to enable APM RUM for Python Flask agent?

**URL:** <https://discuss.elastic.co/t/is-there-any-documentation-on-how-to-enable-apm-rum-for-python-flask-agent/218245>\
**Category:** APM\
**Tags:** python, rum\
**Created:** [February 6, 2020, 7:48pm UTC](https://discuss.elastic.co/t/is-there-any-documentation-on-how-to-enable-apm-rum-for-python-flask-agent/218245 "2020-02-06T19:48:11Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [February 6, 2020, 7:48pm UTC](https://discuss.elastic.co/t/is-there-any-documentation-on-how-to-enable-apm-rum-for-python-flask-agent/218245/1 "2020-02-06T19:48:11Z")

</div>

**Kibana version** :

- 7.3.2

**Elasticsearch version** :

- 7.3.2

**APM Server version** :

- APM 7.3.2

**APM Agent language and version** :

- Python Flask 4.2.2

**Original install method (e.g. download page, yum, deb, from source, etc.) and version** :

- Provided by Elastic Cloud subscription

**Fresh install or upgraded from another version?**

- Upgraded from 7.1.1

**Additional information:**

- We are using the Elastic Cloud services, so we are not running our stack locally.

**Problem:**

- There is no documentation on how to configure APM RUM for Python Flask agent, the only documentation is for node.js.

**Objective:**

- I'm trying to set up APM RUM to monitor the duration time for my web app requests.

**Current Configuration:**

```
from elasticapm.contrib.flask import ElasticAPM
app = Flask( __name__ )
app.config['ELASTIC_APM'] = {
  'SERVICE_NAME': 'FLASK-APP-PROJECT',
  'SECRET_TOKEN': '<token>',
  'SERVER_URL': '<url>',
  'METRICS_SETS': "elasticapm.metrics.sets.transactions.TransactionsMetricSet"
}

```

I appreciate any feedback or resources that you might have, feel free to ask for more information if you think there is missing detail in this post.

---

<div class="post-metadata">

**Author:** ![gil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gil/32/41911_2.png) [@gil](https://discuss.elastic.co/u/gil)\
**Post date:** [February 6, 2020, 8:23pm UTC](https://discuss.elastic.co/t/is-there-any-documentation-on-how-to-enable-apm-rum-for-python-flask-agent/218245/2 "2020-02-06T20:23:49Z")

</div>

Hi @EZprogramming - I think you'll find [https://www.elastic.co/guide/en/apm/agent/python/4.x/flask-support.html#flask-integrating-with-the-rum-agent](https://www.elastic.co/guide/en/apm/agent/python/4.x/flask-support.html#flask-integrating-with-the-rum-agent) to be what you're looking for.

---

<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:** [February 21, 2020, 10:02pm UTC](https://discuss.elastic.co/t/is-there-any-documentation-on-how-to-enable-apm-rum-for-python-flask-agent/218245/3 "2020-02-21T22:02:39Z")

</div>

Thanks @gil, I'll get back to you about this.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 13, 2020, 6:02pm UTC](https://discuss.elastic.co/t/is-there-any-documentation-on-how-to-enable-apm-rum-for-python-flask-agent/218245/4 "2020-03-13T18:02:47Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
