分布式链路追踪系统之skywalking 追踪案例

Java服务案例

基于tomcat运行Jenkins实现链路跟踪案例

java基础环境准备

安装jdk

bash 复制代码
root@tomcat-jenkins:~# apt install openjdk-11-jdk -y 

验证java版本

bash 复制代码
root@tomcat-jenkins:~# java -version
openjdk version "11.0.31" 2026-04-21
OpenJDK Runtime Environment (build 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu)
OpenJDK 64-Bit Server VM (build 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu, mixed mode, sharing)
root@tomcat-jenkins:~#

部署Java agent

下载java agent

bash 复制代码
root@tomcat-jenkins:~# mkdir /skywalking-agent
root@tomcat-jenkins:~# cd /skywalking-agent
root@tomcat-jenkins:/skywalking-agent# wget https://archive.apache.org/dist/skywalking/java-agent/8.13.0/apache-skywalking-java-agent-8.13.0.tgz
--2026-08-16 06:12:09--  https://archive.apache.org/dist/skywalking/java-agent/8.13.0/apache-skywalking-java-agent-8.13.0.tgz
Resolving archive.apache.org (archive.apache.org)... 65.108.204.189, 2a01:4f9:1a:a084::2
Connecting to archive.apache.org (archive.apache.org)|65.108.204.189|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 31443304 (30M) [application/x-gzip]
Saving to: 'apache-skywalking-java-agent-8.13.0.tgz'

apache-skywalking-java-agent-8.13.0.tgz    100%[=======================================================================================>]  29.99M  23.1KB/s    in 34m 6s  s

2026-08-16 06:46:17 (15.0 KB/s) - 'apache-skywalking-java-agent-8.13.0.tgz' saved [31443304/31443304]

root@tomcat-jenkins:/skywalking-agent# ls
apache-skywalking-java-agent-8.13.0.tgz
root@tomcat-jenkins:/skywalking-agent# 

配置skywalking-agent参数

解压skywalking-agent

BASH 复制代码
root@tomcat-jenkins:/skywalking-agent# tar xf apache-skywalking-java-agent-8.13.0.tgz 
root@tomcat-jenkins:/skywalking-agent# ls
apache-skywalking-java-agent-8.13.0.tgz  skywalking-agent
root@tomcat-jenkins:/skywalking-agent# 

配置skywalking-agent

BASH 复制代码
root@tomcat-jenkins:/skywalking-agent# grep -e agent.namespace= -e agent.service_name= -e  collector.backend_service= skywalking-agent/config/agent.config
agent.service_name=${SW_AGENT_NAME:tomcat-jenkins}
agent.namespace=${SW_AGENT_NAMESPACE:myapp}
collector.backend_service=${SW_AGENT_COLLECTOR_BACKEND_SERVICES:192.168.112.72:11800}
root@tomcat-jenkins:/skywalking-agent# 

部署tomcat

下载并解压tomcat

BASH 复制代码
root@tomcat-jenkins:/skywalking-agent# cd 
root@tomcat-jenkins:~# mkdir /apps
root@tomcat-jenkins:~# cd /apps
root@tomcat-jenkins:/apps# wget https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.84/bin/apache-tomcat-8.5.84.tar.gz
--2026-08-16 07:06:53--  https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.84/bin/apache-tomcat-8.5.84.tar.gz
Resolving archive.apache.org (archive.apache.org)... 65.108.204.189, 2a01:4f9:1a:a084::2
Connecting to archive.apache.org (archive.apache.org)|65.108.204.189|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10626063 (10M) [application/x-gzip]
Saving to: 'apache-tomcat-8.5.84.tar.gz'

apache-tomcat-8.5.84.tar.gz                100%[=======================================================================================>]  10.13M  26.5KB/s    in 5m 41s  

2026-08-16 07:12:35 (30.4 KB/s) - 'apache-tomcat-8.5.84.tar.gz' saved [10626063/10626063]

root@tomcat-jenkins:/apps# ls
apache-tomcat-8.5.84.tar.gz
root@tomcat-jenkins:/apps# tar xf apache-tomcat-8.5.84.tar.gz 
root@tomcat-jenkins:/apps# ls
apache-tomcat-8.5.84  apache-tomcat-8.5.84.tar.gz
root@tomcat-jenkins:/apps# 

配置tomcat

BASH 复制代码
root@tomcat-jenkins:/apps# grep -e "^CATALINA_OPTS" apache-tomcat-8.5.84/bin/catalina.sh
CATALINA_OPTS="$CATALINA_OPTS -javaagent:/skywalking-agent/skywalking-agent/skywalking-agent.jar"; export CATALINA_OPTS
root@tomcat-jenkins:/apps# 

这里主要在tomcat的启动脚本里加入skywalking-agent配置,用CATALINA_OPTS环境变量来指定skywalking-agent的jar包路径,然后导出环境变量;

部署jenkins

上传Jenkins app并启动tomcat

上传jenkins war包

BASH 复制代码
root@tomcat-jenkins:/apps# ls
apache-tomcat-8.5.84  apache-tomcat-8.5.84.tar.gz
root@tomcat-jenkins:/apps# cd apache-tomcat-8.5.84/webapps/
root@tomcat-jenkins:/apps/apache-tomcat-8.5.84/webapps# ls
ROOT  docs  examples  host-manager  manager
root@tomcat-jenkins:/apps/apache-tomcat-8.5.84/webapps# rz
rz waiting to receive.
 zmodem trl+C ȡ

  100%   89059 KB 44529 KB/s 00:00:02       0 Errors

root@tomcat-jenkins:/apps/apache-tomcat-8.5.84/webapps# ls
ROOT  docs  examples  host-manager  jenkins.war  manager
root@tomcat-jenkins:/apps/apache-tomcat-8.5.84/webapps# 

启动tomcat

bash 复制代码
root@tomcat-jenkins:/apps/apache-tomcat-8.5.84/webapps# /apps/apache-tomcat-8.5.84/bin/catalina.sh run

验证

验证tomcat端口监听情况

BASH 复制代码
root@tomcat-jenkins:~# ss -tnlp
State          Recv-Q         Send-Q                      Local Address:Port                 Peer Address:Port        Process                                              
LISTEN         0              4096                        127.0.0.53%lo:53                        0.0.0.0:*            users:(("systemd-resolve",pid=38238,fd=14))         
LISTEN         0              128                               0.0.0.0:22                        0.0.0.0:*            users:(("sshd",pid=15809,fd=3))                     
LISTEN         0              100                                     *:8080                            *:*            users:(("java",pid=117129,fd=178))                  
LISTEN         0              1                      [::ffff:127.0.0.1]:8005                            *:*            users:(("java",pid=117129,fd=297))                  
root@tomcat-jenkins:~# 

能够正常看到tomcat8080端口处于监听状况,表示tomcat已经正常运行起来了

验证jenkins web界面

访问tomcat主机IP地址端口加上对应应用名称,如果能够看到上面jenkins的导入密钥画面,表示jenkins已经正常运行,接下来就直接导入密钥,安装jenkins即可;

验证skywalking 数据

如上图所示,能够正常在skywalking web上看到链路追踪数据,说明skywalking agent在tomcat上正常运行;

dubbo微服务实现链路跟踪案例

微服务与单体服务架构

单体(Monolith):所有功能打包成一个程序、一个进程,一次部署全部功能,共用一套数据库;微服务(Microservice):按业务拆成多个独立小服务,每个服务独立进程、独立部署、可单独扩缩容,服务间通过 RPC/HTTP/ 消息队列通信。

部署注册中心zookeeper

java环境准备

BASH 复制代码
root@dubbo-zookeeper:~# apt install openjdk-8-jdk -y

验证Java版本

BASH 复制代码
root@dubbo-zookeeper:~# java -version
openjdk version "1.8.0_492"
OpenJDK Runtime Environment (build 1.8.0_492-8u492-ga~us2-0ubuntu1~22.04.1-b09)
OpenJDK 64-Bit Server VM (build 25.492-b09, mixed mode)
root@dubbo-zookeeper:~#

下载zookeeper

BASH 复制代码
root@dubbo-zookeeper:~# mkdir /apps && cd /apps
root@dubbo-zookeeper:/apps# wget https://downloads01-he-fi.apache.org/zookeeper/zookeeper-3.7.2/apache-zookeeper-3.7.2-bin.tar.gz
--2026-08-16 11:43:42--  https://downloads01-he-fi.apache.org/zookeeper/zookeeper-3.7.2/apache-zookeeper-3.7.2-bin.tar.gz
Resolving downloads01-he-fi.apache.org (downloads01-he-fi.apache.org)... 95.216.224.44, 2a01:4f9:2b:1cc2::2
Connecting to downloads01-he-fi.apache.org (downloads01-he-fi.apache.org)|95.216.224.44|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14198607 (14M) [application/x-gzip]
Saving to: 'apache-zookeeper-3.7.2-bin.tar.gz'

apache-zookeeper-3.7.2-bin.tar.gz          100%[=======================================================================================>]  13.54M   115KB/s    in 1m 53s  

2026-08-16 11:45:36 (123 KB/s) - 'apache-zookeeper-3.7.2-bin.tar.gz' saved [14198607/14198607]

root@dubbo-zookeeper:/apps# ls
apache-zookeeper-3.7.2-bin.tar.gz
root@dubbo-zookeeper:/apps# 

解压并启动zookeeper

BASH 复制代码
root@dubbo-zookeeper:/apps# ls
apache-zookeeper-3.7.2-bin.tar.gz
root@dubbo-zookeeper:/apps# tar xf apache-zookeeper-3.7.2-bin.tar.gz 
root@dubbo-zookeeper:/apps# ls
apache-zookeeper-3.7.2-bin  apache-zookeeper-3.7.2-bin.tar.gz
root@dubbo-zookeeper:/apps# cd apache-zookeeper-3.7.2-bin
root@dubbo-zookeeper:/apps/apache-zookeeper-3.7.2-bin# ls
LICENSE.txt  NOTICE.txt  README.md  README_packaging.md  bin  conf  docs  lib
root@dubbo-zookeeper:/apps/apache-zookeeper-3.7.2-bin# cd conf/
root@dubbo-zookeeper:/apps/apache-zookeeper-3.7.2-bin/conf# ls
configuration.xsl  log4j.properties  zoo_sample.cfg
root@dubbo-zookeeper:/apps/apache-zookeeper-3.7.2-bin/conf# cp zoo_sample.cfg zoo.cfg
root@dubbo-zookeeper:/apps/apache-zookeeper-3.7.2-bin/conf# ../bin/zkServer.sh start
/usr/bin/java
ZooKeeper JMX enabled by default
Using config: /apps/apache-zookeeper-3.7.2-bin/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
root@dubbo-zookeeper:/apps/apache-zookeeper-3.7.2-bin/conf#ss -tnlp
State          Recv-Q         Send-Q                   Local Address:Port                    Peer Address:Port         Process                                             
LISTEN         0              4096                     127.0.0.53%lo:53                           0.0.0.0:*             users:(("systemd-resolve",pid=4866,fd=14))         
LISTEN         0              128                            0.0.0.0:22                           0.0.0.0:*             users:(("sshd",pid=65345,fd=3))                    
LISTEN         0              50                                   *:46273                              *:*             users:(("java",pid=115726,fd=60))                  
LISTEN         0              50                                   *:2181                               *:*             users:(("java",pid=115726,fd=73))                  
LISTEN         0              50                                   *:8080                               *:*             users:(("java",pid=115726,fd=62))                  
root@dubbo-zookeeper:/apps/apache-zookeeper-3.7.2-bin/conf# 

能够看到2181端口处于正常监听状态,说明zookeeper部署好了;生产一般情况zookeeper是一个高可用集群,有关zookeeper集群部署可以参考本人博客https://www.cnblogs.com/qiuhom-1874/p/13841371.html

部署provider

Java环境准备

BASH 复制代码
root@dubbo-provider:~# apt install -y openjdk-8-jdk

验证Java版本

BASH 复制代码
root@dubbo-provider:~# java -version
openjdk version "1.8.0_492"
OpenJDK Runtime Environment (build 1.8.0_492-8u492-ga~us2-0ubuntu1~22.04.1-b09)
OpenJDK 64-Bit Server VM (build 25.492-b09, mixed mode)
root@dubbo-provider:~#

下载skywalking-agent

BASH 复制代码
root@dubbo-provider:~# mkdir /skywalking-agent && cd /skywalking-agent
root@dubbo-provider:/skywalking-agent# wget https://archive.apache.org/dist/skywalking/java-agent/8.13.0/apache-skywalking-java-agent-8.13.0.tgz

解压并配置skywalking-agent

BASH 复制代码
root@dubbo-provider:/skywalking-agent# ls
apache-skywalking-java-agent-8.13.0.tgz
root@dubbo-provider:/skywalking-agent# tar xf apache-skywalking-java-agent-8.13.0.tgz 
root@dubbo-provider:/skywalking-agent# ls
apache-skywalking-java-agent-8.13.0.tgz  skywalking-agent
root@dubbo-provider:/skywalking-agent# cd skywalking-agent/
root@dubbo-provider:/skywalking-agent/skywalking-agent# ls
LICENSE  NOTICE  activations  bootstrap-plugins  config  licenses  logs  optional-plugins  optional-reporter-plugins  plugins  skywalking-agent.jar
root@dubbo-provider:/skywalking-agent/skywalking-agent# cd config/
root@dubbo-provider:/skywalking-agent/skywalking-agent/config# grep -e agent.namespace= -e agent.service_name= -e  collector.backend_service= agent.config
agent.service_name=${SW_AGENT_NAME:dubbo-provider}
agent.namespace=${SW_AGENT_NAMESPACE:myapp}
collector.backend_service=${SW_AGENT_COLLECTOR_BACKEND_SERVICES:192.168.112.72:11800}
root@dubbo-provider:/skywalking-agent/skywalking-agent/config# 

上传dubbo-provider jar包

BASH 复制代码
root@dubbo-provider:~# mkdir /apps && cd /apps
root@dubbo-provider:/apps# rz
rz waiting to receive.
 zmodem trl+C ȡ

  100%   13966 KB 13966 KB/s 00:00:01       0 Errors

root@dubbo-provider:/apps# ls
dubbo-server.jar
root@dubbo-provider:/apps# 

添加主机名解析

bash 复制代码
root@dubbo-provider:/apps# cat /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

export ZK_SERVER1=192.168.112.76

if [ "${PS1-}" ]; then
  if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
      . /etc/bash.bashrc
    fi
  else
    if [ "$(id -u)" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi
root@dubbo-provider:/apps# source /etc/profile
root@dubbo-provider:/apps# echo $ZK_SERVER1
192.168.112.76
root@dubbo-provider:/apps# 

这里之所以要给ZK_SERVER1 赋值原因是provider里面配置文件通过这个环境变量来指定zookeeper地址;

启动provider

BASH 复制代码
root@dubbo-provider:/apps# java -javaagent:/skywalking-agent/skywalking-agent/skywalking-agent.jar -jar /apps/dubbo-server.jar 

能够看到服务已经启动,表示provider启动成功;

部署consumer

Java环境准备

BASH 复制代码
root@dubbo-consumer:~# apt install -y openjdk-8-jdk

验证java版本

BASH 复制代码
root@dubbo-consumer:~# java -version
openjdk version "1.8.0_492"
OpenJDK Runtime Environment (build 1.8.0_492-8u492-ga~us2-0ubuntu1~22.04.1-b09)
OpenJDK 64-Bit Server VM (build 25.492-b09, mixed mode)
root@dubbo-consumer:~# 

下载skywalking-agent

BASH 复制代码
root@dubbo-consumer:~# mkdir /skywalking-agent && cd /skywalking-agent
root@dubbo-consumer:/skywalking-agent# wget https://archive.apache.org/dist/skywalking/java-agent/8.13.0/apache-skywalking-java-agent-8.13.0.tgz

解压并配置skywalking-agent

BASH 复制代码
root@dubbo-consumer:/skywalking-agent# ls
apache-skywalking-java-agent-8.13.0.tgz
root@dubbo-consumer:/skywalking-agent# tar xf apache-skywalking-java-agent-8.13.0.tgz 
root@dubbo-consumer:/skywalking-agent# ls
apache-skywalking-java-agent-8.13.0.tgz  skywalking-agent
root@dubbo-consumer:/skywalking-agent# cd skywalking-agent/
root@dubbo-consumer:/skywalking-agent/skywalking-agent# cd config/
root@dubbo-consumer:/skywalking-agent/skywalking-agent/config# grep -e agent.namespace= -e agent.service_name= -e  collector.backend_service= agent.config
agent.service_name=${SW_AGENT_NAME:dubbo-comsumer}
agent.namespace=${SW_AGENT_NAMESPACE:myapp}
collector.backend_service=${SW_AGENT_COLLECTOR_BACKEND_SERVICES:192.168.112.72:11800}
root@dubbo-consumer:/skywalking-agent/skywalking-agent/config# 

上传dubbo-consumer jar包

bash 复制代码
root@dubbo-consumer:~# mkdir /apps && cd /apps
root@dubbo-consumer:/apps# rz
rz waiting to receive.
 zmodem trl+C ȡ

  100%   21170 KB 21170 KB/s 00:00:01       0 Errors

root@dubbo-consumer:/apps# ls
dubbo-client.jar
root@dubbo-consumer:/apps# 

添加主机名解析

BASH 复制代码
root@dubbo-consumer:/apps# cat /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

export ZK_SERVER1=192.168.112.76

if [ "${PS1-}" ]; then
  if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
      . /etc/bash.bashrc
    fi
  else
    if [ "$(id -u)" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi
root@dubbo-consumer:/apps# source /etc/profile
root@dubbo-consumer:/apps# echo $ZK_SERVER1
192.168.112.76
root@dubbo-consumer:/apps# 

启动comsumer

BASH 复制代码
root@dubbo-consumer:/apps# java -javaagent:/skywalking-agent/skywalking-agent/skywalking-agent.jar -jar /apps/dubbo-client.jar 

能够看到dubbo消费者端已经启动,表示dubbo-consumer就部署好了;

部署dubboadmin

java 环境准备

BASH 复制代码
root@dubboadmin:~# apt install openjdk-8-jdk -y

验证Java 版本

BASH 复制代码
root@dubboadmin:~# java -version
openjdk version "1.8.0_492"
OpenJDK Runtime Environment (build 1.8.0_492-8u492-ga~us2-0ubuntu1~22.04.1-b09)
OpenJDK 64-Bit Server VM (build 25.492-b09, mixed mode)
root@dubboadmin:~# 

安装tomcat

BASH 复制代码
root@dubboadmin:~# mkdir /apps && cd /apps
root@dubboadmin:/apps# wget https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.84/bin/apache-tomcat-8.5.84.tar.gz

解压tomcat

BASH 复制代码
root@dubboadmin:/apps# ls
apache-tomcat-8.5.84.tar.gz
root@dubboadmin:/apps# tar xf apache-tomcat-8.5.84.tar.gz 
root@dubboadmin:/apps# ls
apache-tomcat-8.5.84  apache-tomcat-8.5.84.tar.gz
root@dubboadmin:/apps# ln -s  apache-tomcat-8.5.84 tomcat
root@dubboadmin:/apps# ll
total 10392
drwxr-xr-x  3 root root     4096 Aug 16 13:31 ./
drwxr-xr-x 20 root root     4096 Aug 16 13:28 ../
drwxr-xr-x  9 root root     4096 Aug 16 13:31 apache-tomcat-8.5.84/
-rw-r--r--  1 root root 10626063 Aug 16 13:30 apache-tomcat-8.5.84.tar.gz
lrwxrwxrwx  1 root root       20 Aug 16 13:31 tomcat -> apache-tomcat-8.5.84/
root@dubboadmin:/apps# 

上传dubboadmin至tomcat 的webapp目录

BASH 复制代码
root@dubboadmin:/apps# cd tomcat/webapps/
root@dubboadmin:/apps/tomcat/webapps# ls
ROOT  docs  examples  host-manager  manager
root@dubboadmin:/apps/tomcat/webapps# rz
rz waiting to receive.
 zmodem trl+C ȡ

  100%   27126 KB 27126 KB/s 00:00:01       0 Errors

root@dubboadmin:/apps/tomcat/webapps# ls
ROOT  docs  dubboadmin.war  examples  host-manager  manager
root@dubboadmin:/apps/tomcat/webapps# 

解压dubboadmin.war

BASH 复制代码
root@dubboadmin:/apps/tomcat/webapps# unzip dubboadmin.war 

修改配置

BASH 复制代码
root@dubboadmin:/apps/tomcat/webapps# cat dubboadmin/WEB-INF/dubbo.properties
dubbo.registry.address=zookeeper://192.168.112.76:2181
dubbo.admin.root.password=root
dubbo.admin.guest.password=guest
root@dubboadmin:/apps/tomcat/webapps# 

这里需要配置zookeeper的IP地址,以及root和guest登录密码;

启动tomcat

BASH 复制代码
root@dubboadmin:/apps/tomcat/webapps# /apps/tomcat/bin/catalina.sh  run

验证

访问consumer

验证skywalking数据

验证dubboadmin web界面

Python服务案例

基于Django项目追踪案例

Python基础环境准备

本案例基于Ubuntu 20.04,python3.8

安装pip

BASH 复制代码
root@python-agent:~# apt install python3-pip -y

安装SkyWalking Python agent

BASH 复制代码
root@python-agent:~# pip3 install "apache-skywalking"
Collecting apache-skywalking
  Downloading apache_skywalking-1.2.0-py3-none-any.whl (264 kB)
     |████████████████████████████████| 264 kB 520 kB/s 
Requirement already satisfied: packaging in /usr/lib/python3/dist-packages (from apache-skywalking) (20.3)
Collecting psutil<=5.9.5
  Downloading psutil-5.9.5-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (282 kB)
     |████████████████████████████████| 282 kB 7.0 MB/s 
Collecting grpcio
  Downloading grpcio-1.70.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.0 MB)
     |████████████████████████████████| 6.0 MB 12.3 MB/s 
Collecting grpcio-tools
  Downloading grpcio_tools-1.70.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB)
     |████████████████████████████████| 2.5 MB 58.3 MB/s 
Collecting wrapt
  Downloading wrapt-2.0.1-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (118 kB)
     |████████████████████████████████| 118 kB 33.4 MB/s 
Collecting protobuf<6.0dev,>=5.26.1
  Downloading protobuf-5.29.6-cp38-abi3-manylinux2014_x86_64.whl (320 kB)
     |████████████████████████████████| 320 kB 67.4 MB/s 
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from grpcio-tools->apache-skywalking) (45.2.0)
Installing collected packages: psutil, grpcio, protobuf, grpcio-tools, wrapt, apache-skywalking
Successfully installed apache-skywalking-1.2.0 grpcio-1.70.0 grpcio-tools-1.70.0 protobuf-5.29.6 psutil-5.9.5 wrapt-2.0.1
root@python-agent:~# 

测试验证SkyWalking Python agent

BASH 复制代码
root@python-agent:~# python3
Python 3.8.10 (default, Mar 18 2025, 20:04:55) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from skywalking import config, agent
>>> config.init(
...     agent_collector_backend_services='192.168.112.72:11800',
...     agent_name='test-python-agent'
... )
>>> agent.start()
2026-08-17 22:01:43,381 skywalking [pid:11101] [MainThread] [INFO] SkyWalking sync agent instance 1abc7a009a4411f1909f716e3bdf8342 starting in pid-11101.
2026-08-17 22:01:43,385 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_aiohttp failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,385 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_aioredis failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,386 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_aiormq failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,386 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_amqp failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,386 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_asyncpg failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,387 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_bottle failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,387 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_celery failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,390 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_confluent_kafka failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,390 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_django failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,391 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_elasticsearch failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,391 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_falcon failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,391 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_fastapi failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,392 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_flask failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,408 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_happybase failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,419 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_httpx failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,419 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_kafka failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,419 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_loguru failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,420 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_mysqlclient failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,422 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_neo4j failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,422 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_psycopg failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,423 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_psycopg2 failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,423 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_pulsar failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,423 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_pymongo failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,424 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_pymysql failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,424 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_pyramid failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,425 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_rabbitmq failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,425 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_redis failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,491 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_sanic failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,491 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_tornado failed to install, please ignore this warning if the package is not used in your application.
2026-08-17 22:01:43,492 skywalking [pid:11101] [MainThread] [WARNING] Plugin sw_websockets failed to install, please ignore this warning if the package is not used in your application.
>>> 

后面报警告,原因是没有插件,但是不影响测试python-agent链接skywalking-server;

在skywalking web上验证查看

能够在skywalking 页面中看到刚才的链接,表示python-agent 成功链接skywalking;

上传Django项目

BASH 复制代码
root@python-agent:~# mkdir /apps && cd /apps
root@python-agent:/apps# rz
rz waiting to receive.
 zmodem trl+C ȡ

  100%   17957 KB 17957 KB/s 00:00:01       0 Errors

root@python-agent:/apps# ls
django-test.tgz
root@python-agent:/apps# 

解压项目并安装依赖模块

BASH 复制代码
root@python-agent:/apps# tar xf django-test.tgz 
root@python-agent:/apps# ls
django-test  django-test.tgz
root@python-agent:/apps# cd django-test/
root@python-agent:/apps/django-test# ls
bin  include  lib  mysite  pyvenv.cfg  requirements.txt
root@python-agent:/apps/django-test# pip3 install -r requirements.txt 
Collecting apache-skywalking==0.7.0
  Downloading apache_skywalking-0.7.0-py3-none-any.whl (169 kB)
     |████████████████████████████████| 169 kB 527 kB/s 
Collecting asgiref==3.4.1
  Downloading asgiref-3.4.1-py3-none-any.whl (25 kB)
Collecting backports.zoneinfo==0.2.1
  Downloading backports.zoneinfo-0.2.1-cp38-cp38-manylinux1_x86_64.whl (74 kB)
     |████████████████████████████████| 74 kB 1.8 MB/s 
Collecting Django==4.0.1
  Downloading Django-4.0.1-py3-none-any.whl (8.0 MB)
     |████████████████████████████████| 8.0 MB 6.3 MB/s 
Collecting grpcio==1.43.0
  Downloading grpcio-1.43.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB)
     |████████████████████████████████| 4.1 MB 10.1 MB/s 
Collecting grpcio-tools==1.43.0
  Downloading grpcio_tools-1.43.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB)
     |████████████████████████████████| 2.4 MB 15.4 MB/s 
Collecting packaging==21.3
  Downloading packaging-21.3-py3-none-any.whl (40 kB)
     |████████████████████████████████| 40 kB 2.7 MB/s 
Collecting protobuf==3.19.3
  Downloading protobuf-3.19.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 13.1 MB/s 
Collecting PyMySQL==1.0.2
  Downloading PyMySQL-1.0.2-py3-none-any.whl (43 kB)
     |████████████████████████████████| 43 kB 1.2 MB/s 
Collecting pyparsing==3.0.6
  Downloading pyparsing-3.0.6-py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 3.5 MB/s 
Collecting six==1.16.0
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting sqlparse==0.4.2
  Downloading sqlparse-0.4.2-py3-none-any.whl (42 kB)
     |████████████████████████████████| 42 kB 788 kB/s 
Collecting wrapt==1.13.3
  Downloading wrapt-1.13.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (84 kB)
     |████████████████████████████████| 84 kB 1.9 MB/s 
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from grpcio-tools==1.43.0->-r requirements.txt (line 6)) (45.2.0)
ERROR: launchpadlib 1.10.13 requires testresources, which is not installed.
Installing collected packages: six, grpcio, protobuf, grpcio-tools, pyparsing, packaging, wrapt, apache-skywalking, asgiref, backports.zoneinfo, sqlparse, Django, PyMySQL
  Attempting uninstall: six
    Found existing installation: six 1.14.0
    Not uninstalling six at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'six'. No files were found to uninstall.
  Attempting uninstall: grpcio
    Found existing installation: grpcio 1.70.0
    Uninstalling grpcio-1.70.0:
      Successfully uninstalled grpcio-1.70.0
  Attempting uninstall: protobuf
    Found existing installation: protobuf 5.29.6
    Uninstalling protobuf-5.29.6:
      Successfully uninstalled protobuf-5.29.6
  Attempting uninstall: grpcio-tools
    Found existing installation: grpcio-tools 1.70.0
    Uninstalling grpcio-tools-1.70.0:
      Successfully uninstalled grpcio-tools-1.70.0
  Attempting uninstall: pyparsing
    Found existing installation: pyparsing 2.4.6
    Not uninstalling pyparsing at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'pyparsing'. No files were found to uninstall.
  Attempting uninstall: packaging
    Found existing installation: packaging 20.3
    Not uninstalling packaging at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'packaging'. No files were found to uninstall.
  Attempting uninstall: wrapt
    Found existing installation: wrapt 2.0.1
    Uninstalling wrapt-2.0.1:
      Successfully uninstalled wrapt-2.0.1
  Attempting uninstall: apache-skywalking
    Found existing installation: apache-skywalking 1.2.0
    Uninstalling apache-skywalking-1.2.0:
      Successfully uninstalled apache-skywalking-1.2.0
Successfully installed Django-4.0.1 PyMySQL-1.0.2 apache-skywalking-0.7.0 asgiref-3.4.1 backports.zoneinfo-0.2.1 grpcio-1.43.0 grpcio-tools-1.43.0 packaging-21.3 protobuf-3.19.3 pyparsing-3.0.6 six-1.16.0 sqlparse-0.4.2 wrapt-1.13.3
root@python-agent:/apps/django-test#

上面安装依赖报错ERROR: launchpadlib 1.10.13 requires testresources, which is not installed.这个是系统缺少testresources 依赖的launchpadlib,不影响skywalking python agent的使用;当然也可以安装这个库,对应报错就没有了;如下

BASH 复制代码
root@python-agent:/apps/django-test# pip3 install launchpadlib
Requirement already satisfied: launchpadlib in /usr/lib/python3/dist-packages (1.10.13)
Requirement already satisfied: httplib2 in /usr/lib/python3/dist-packages (from launchpadlib) (0.14.0)
Requirement already satisfied: keyring in /usr/lib/python3/dist-packages (from launchpadlib) (18.0.1)
Requirement already satisfied: lazr.restfulclient>=0.9.19 in /usr/lib/python3/dist-packages (from launchpadlib) (0.14.2)
Requirement already satisfied: lazr.uri in /usr/lib/python3/dist-packages (from launchpadlib) (1.0.3)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from launchpadlib) (45.2.0)
Requirement already satisfied: six in /usr/local/lib/python3.8/dist-packages (from launchpadlib) (1.16.0)
Collecting testresources
  Downloading testresources-2.0.2.tar.gz (45 kB)
     |████████████████████████████████| 45 kB 536 kB/s 
Requirement already satisfied: wadllib in /usr/lib/python3/dist-packages (from launchpadlib) (1.3.3)
Requirement already satisfied: secretstorage in /usr/lib/python3/dist-packages (from keyring->launchpadlib) (2.3.1)
Collecting pbr>=1.8
  Using cached pbr-7.0.3-py2.py3-none-any.whl (131 kB)
Building wheels for collected packages: testresources
  Building wheel for testresources (setup.py) ... done
  Created wheel for testresources: filename=testresources-2.0.2-py2.py3-none-any.whl size=34437 sha256=ecf3185c8798e029badbb75e18f52ebc1b10be373081ad89107c3d753e319ace
  Stored in directory: /root/.cache/pip/wheels/12/41/54/d918b0f2d0c8e9912563aad3a1792f33e36e83e2eedaf50a85
Successfully built testresources
Installing collected packages: pbr, testresources
Successfully installed pbr-7.0.3 testresources-2.0.2
root@python-agent:/apps/django-test# pip3 install -r requirements.txt 
Requirement already satisfied: apache-skywalking==0.7.0 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 1)) (0.7.0)
Requirement already satisfied: asgiref==3.4.1 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 2)) (3.4.1)
Requirement already satisfied: backports.zoneinfo==0.2.1 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 3)) (0.2.1)
Requirement already satisfied: Django==4.0.1 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 4)) (4.0.1)
Requirement already satisfied: grpcio==1.43.0 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 5)) (1.43.0)
Requirement already satisfied: grpcio-tools==1.43.0 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 6)) (1.43.0)
Requirement already satisfied: packaging==21.3 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 7)) (21.3)
Requirement already satisfied: protobuf==3.19.3 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 8)) (3.19.3)
Requirement already satisfied: PyMySQL==1.0.2 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 9)) (1.0.2)
Requirement already satisfied: pyparsing==3.0.6 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 10)) (3.0.6)
Requirement already satisfied: six==1.16.0 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 11)) (1.16.0)
Requirement already satisfied: sqlparse==0.4.2 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 12)) (0.4.2)
Requirement already satisfied: wrapt==1.13.3 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 13)) (1.13.3)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from grpcio-tools==1.43.0->-r requirements.txt (line 6)) (45.2.0)
root@python-agent:/apps/django-test# 

创建django项目mysite

BASH 复制代码
root@python-agent:/apps/django-test# django-admin startproject mysite
CommandError: '/apps/django-test/mysite' already exists
root@python-agent:/apps/django-test# rm -rf mysite
root@python-agent:/apps/django-test# django-admin startproject mysite
root@python-agent:/apps/django-test# ls
bin  include  lib  mysite  pyvenv.cfg  requirements.txt
root@python-agent:/apps/django-test# 

这里报错的原因是/apps/django-test/mysite 目录已经存在了,startproject 不能覆盖已有文件夹,直接报错。解决办法可以换个名称,或者删除对应文件夹,重新创建项目;

创建应用

BASH 复制代码
root@python-agent:/apps/django-test# cd mysite/
root@python-agent:/apps/django-test/mysite# python3 manage.py startapp myapp
root@python-agent:/apps/django-test/mysite# 

初始化数据库

BASH 复制代码
root@python-agent:/apps/django-test/mysite# python3 manage.py makemigrations
No changes detected
root@python-agent:/apps/django-test/mysite# python3 manage.py migrate    
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, sessions
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying admin.0003_logentry_add_action_flag_choices... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying auth.0010_alter_group_name_max_length... OK
  Applying auth.0011_update_proxy_permissions... OK
  Applying auth.0012_alter_user_first_name_max_length... OK
  Applying sessions.0001_initial... OK
root@python-agent:/apps/django-test/mysite# 

创建管理员,用于登录web控制台

BASH 复制代码
root@python-agent:/apps/django-test/mysite# python3 manage.py createsuperuser
Username (leave blank to use 'root'): root
Email address: 467697313@qq.com
Password: 
Password (again): 
This password is too short. It must contain at least 8 characters.
This password is too common.
Bypass password validation and create user anyway? [y/N]: y
Superuser created successfully.
root@python-agent:/apps/django-test/mysite# 

配置skywarking环境变量

BASH 复制代码
root@python-agent:/apps/django-test/mysite# export SW_AGENT_NAME='python-app1'
root@python-agent:/apps/django-test/mysite# export SW_AGENT_NAMESAPCE='python-project'
root@python-agent:/apps/django-test/mysite# export SW_AGENT_COLLECTOR_BACKEND_SERVICES='192.168.112.72:11800'
root@python-agent:/apps/django-test/mysite# 

修改访问配置

BASH 复制代码
root@python-agent:/apps/django-test/mysite# grep ALLOWED_HOSTS mysite/settings.py
ALLOWED_HOSTS = ["*",]
root@python-agent:/apps/django-test/mysite# 

启动服务

BASH 复制代码
root@python-agent:/apps/django-test/mysite# sw-python -d run python3 manage.py runserver 192.168.112.80:80
skywalking-cli [DEBUG] Args received Namespace(command=['python3', 'manage.py', 'runserver', '192.168.112.80:80'], debug=True, option='run')
skywalking-cli [DEBUG] SkyWalking Python agent with CLI option 'run' and command ['python3', 'manage.py', 'runserver', '192.168.112.80:80']
skywalking-cli [DEBUG] SkyWalking Python agent `runner` received command ['python3', 'manage.py', 'runserver', '192.168.112.80:80']
skywalking-cli [DEBUG] Adding sitecustomize.py to PYTHONPATH
skywalking-cli [DEBUG] Updated PYTHONPATH - /usr/local/lib/python3.8/dist-packages/skywalking/bootstrap/loader
skywalking-cli [DEBUG] New process starting with file - `python3` args - `['python3', 'manage.py', 'runserver', '192.168.112.80:80']`
skywalking-loader [MainThread] [DEBUG] ---------------sitecustomize.py---------------
skywalking-loader [MainThread] [DEBUG] Successfully imported sitecustomize.py from `/usr/local/lib/python3.8/dist-packages/skywalking/bootstrap/loader/sitecustomize.py`
skywalking-loader [MainThread] [DEBUG] You are inside working dir - /apps/django-test/mysite
skywalking-loader [MainThread] [DEBUG] Using Python version - 3.8.10 (default, Mar 18 2025, 20:04:55) 
[GCC 9.4.0] 
skywalking-loader [MainThread] [DEBUG] Using executable at - /usr/bin/python3
skywalking-loader [MainThread] [DEBUG] System Base Python executable location /usr
skywalking-loader [MainThread] [DEBUG] Original sitecustomize module not found, skipping.
skywalking-loader [MainThread] [DEBUG] SkyWalking Python Agent starting, loader finished.
skywalking [MainThread] [WARNING] failed to install plugin sw_aiohttp
skywalking [MainThread] [WARNING] failed to install plugin sw_celery
skywalking [MainThread] [WARNING] failed to install plugin sw_elasticsearch
skywalking [MainThread] [WARNING] failed to install plugin sw_falcon
skywalking [MainThread] [WARNING] failed to install plugin sw_flask
skywalking [MainThread] [WARNING] failed to install plugin sw_kafka
skywalking [MainThread] [WARNING] failed to install plugin sw_psycopg2
skywalking [MainThread] [WARNING] failed to install plugin sw_pymongo
skywalking [MainThread] [WARNING] failed to install plugin sw_pyramid
skywalking [MainThread] [WARNING] failed to install plugin sw_rabbitmq
skywalking [MainThread] [WARNING] failed to install plugin sw_redis
skywalking [MainThread] [WARNING] failed to install plugin sw_sanic
skywalking [MainThread] [WARNING] failed to install plugin sw_tornado
skywalking-loader [MainThread] [DEBUG] ---------------sitecustomize.py---------------
skywalking-loader [MainThread] [DEBUG] Successfully imported sitecustomize.py from `/usr/local/lib/python3.8/dist-packages/skywalking/bootstrap/loader/sitecustomize.py`
skywalking-loader [MainThread] [DEBUG] You are inside working dir - /apps/django-test/mysite
skywalking-loader [MainThread] [DEBUG] Using Python version - 3.8.10 (default, Mar 18 2025, 20:04:55) 
[GCC 9.4.0] 
skywalking-loader [MainThread] [DEBUG] Using executable at - /usr/bin/python3
skywalking-loader [MainThread] [DEBUG] System Base Python executable location /usr
skywalking-loader [MainThread] [DEBUG] Original sitecustomize module not found, skipping.
skywalking-loader [MainThread] [DEBUG] SkyWalking Python Agent starting, loader finished.
skywalking [MainThread] [WARNING] failed to install plugin sw_aiohttp
skywalking [MainThread] [WARNING] failed to install plugin sw_celery
skywalking [MainThread] [WARNING] failed to install plugin sw_elasticsearch
skywalking [MainThread] [WARNING] failed to install plugin sw_falcon
skywalking [MainThread] [WARNING] failed to install plugin sw_flask
skywalking [MainThread] [WARNING] failed to install plugin sw_kafka
skywalking [MainThread] [WARNING] failed to install plugin sw_psycopg2
skywalking [MainThread] [WARNING] failed to install plugin sw_pymongo
skywalking [MainThread] [WARNING] failed to install plugin sw_pyramid
skywalking [MainThread] [WARNING] failed to install plugin sw_rabbitmq
skywalking [MainThread] [WARNING] failed to install plugin sw_redis
skywalking [MainThread] [WARNING] failed to install plugin sw_sanic
skywalking [MainThread] [WARNING] failed to install plugin sw_tornado
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
August 17, 2026 - 14:35:11
Django version 4.0.1, using settings 'mysite.settings'
Starting development server at http://192.168.112.80:80/
Quit the server with CONTROL-C.

验证

登录管理页面

测试添加账户

验证skywalking界面

能够正常看到数据,表示python-agent工作正常;以上就是Python服务案例-基于Django项目追踪案例全部过程;

相关推荐
阿里云云原生5 小时前
当拨测遇上 APM:STAROps Agent 如何区分网络问题与后端问题
云原生
云烟成雨TD15 小时前
Micrometer 系列【68】统一观测:基于 Spring Boot 的生产级演示案例 | 跨进程场景
spring boot·云原生·链路追踪
云烟成雨TD15 小时前
Micrometer 系列【67】统一观测:基于 Spring Boot 的生产级演示案例 | 跨线程场景
spring boot·云原生·链路追踪
lang2015092816 小时前
从 J2EE 到云原生:Spring Framework 的设计哲学与演进之路
spring·云原生·java-ee
Henry-SAP1 天前
SAP引领ERP智能化转型
人工智能·云原生·sap·erp
流烟默1 天前
Kubernetes 调度器完全指南:从原理到生产实战
云原生·容器·kubernetes
styshoo1 天前
[NVSentinel] gpu-health-monitor模块调研
人工智能·云原生·nvsentinel
流烟默1 天前
Kubernetes Service 完全指南:从原理到生产实战
云原生·容器·kubernetes
重庆小透明1 天前
深入探寻微服务【第四篇微服务监控实战】
微服务·云原生·架构