apm-python

Instrument Django, Flask, and FastAPI apps with Elastic APM.

6|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/patrykkopycinski/elastic-cursor-plugin --skill apm-python
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apm-python
Source: https://github.com/patrykkopycinski/elastic-cursor-plugin/tree/main/.cursor/skills/apm-python
Command: npx skills add https://github.com/patrykkopycinski/elastic-cursor-plugin --skill apm-python

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Help developers instrument Python web applications to collect performance metrics, errors, and traces so they can monitor and troubleshoot runtime behavior with Elastic APM.

Core Features & Use Cases

  • Framework integrations: Provides tailored guidance for Django, Flask, and FastAPI integration steps and configuration.
  • Installation & configuration: Advises on installing the elastic-apm package, setting the APM server URL, and supplying a secret token or API key.
  • Validation & observability: Walks through sending a test request and verifying transactions and service metadata in Kibana APM for production readiness.
  • Use Case: Add APM to a Django app to capture slow transactions, error traces, and environment-specific service names for performance monitoring.

Quick Start

Set up Elastic APM for my Django application using the APM server URL and secret token I provide.

Frequently Asked Questions about apm-python

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Elastic APM to a FastAPI application?

To add Elastic APM to a FastAPI application, you install the elastic-apm package and configure the framework-specific extension with your APM server URL and secret token to start collecting performance metrics and transactions.

Can I use Elastic APM to monitor both Flask and Django projects?

Yes, Elastic APM supports monitoring both Flask and Django projects by applying tailored middleware integration steps to capture runtime errors, performance metrics, and service metadata.

What is the best way to configure the Elastic APM Python client with my server credentials?

The best way to configure the Elastic APM Python client is by supplying your APM server URL and secret token or API key during the framework integration setup to securely transmit performance data.

How do I verify that my Python service is sending traces to Kibana APM?

You can verify your Python service is sending traces to Kibana APM by sending a test request to your application and checking that the transaction data and service metadata appear in the Kibana dashboard.

Why are my Django application transactions not showing up in Elastic APM?

Django transactions may not show up in Elastic APM if the middleware is misconfigured, or the APM server URL and secret token are incorrect, preventing performance metrics from being captured and transmitted.