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

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.


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


  • 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'] = {
  '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.

Hi @EZprogramming - I think you'll find to be what you're looking for.

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

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