Install the Python probe in a uv environment
If you manage Python dependencies with uv, you can install the ARMS Python probe through uv pip and launch your application with automatic instrumentation. This enables performance monitoring, Tracing Analysis, and anomaly detection for your Python application.
Prerequisites
Before you begin, make sure that you have:
Step 1: Download and extract the probe package
Download the probe package from the OSS endpoint that matches your region, then extract it:
wget "http://arms-apm-<region-id>.oss-<region-id>.aliyuncs.com/aliyun-python-agent/aliyun-python-agent.tar.gz"
tar -zxvf aliyun-python-agent.tar.gzReplace <region-id> with your region ID. For example, for the China (Hangzhou) region:
wget "http://arms-apm-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/aliyun-python-agent/aliyun-python-agent.tar.gz"
tar -zxvf aliyun-python-agent.tar.gzThis creates an aliyun-python-agent/ directory containing the probe wheel files.
Step 2: Install the probe with uv
Install the probe wheel files into your current Python environment:
uv pip install aliyun-python-agent/target/*.whlStep 3: Run your application with the probe
Start your application through aliyun-instrument for automatic instrumentation:
uv aliyun-instrument python3 app.pyReplace app.py with your application entry point.