惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
D
DataBreaches.Net
B
Blog RSS Feed
博客园_首页
The GitHub Blog
The GitHub Blog
I
InfoQ
L
LangChain Blog
G
Google Developers Blog
M
MIT News - Artificial intelligence
美团技术团队
腾讯CDC
V
Visual Studio Blog
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Apple Machine Learning Research
Apple Machine Learning Research
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
博客园 - 叶小钗

运维监控系列 on 打工人日志

Logstash 自动重载配置文件 windows-exporter 监控 skywalking APM 监控 logstash 多管道部署 nginx exporter 安装配置 prometheus grafana alertmanager 安装配置 prometheus 配置
skywalking python agent 安装和配置
2023-05-31 · via 运维监控系列 on 打工人日志

背景

skywalking 是一个APM监控,在java和微服务领域非常流行。但是在python领域,skywalking的使用率并不高。本文将介绍如何安装和配置skywalking python agent。
SkyWalking Python 代理实现了一个命令行界面,可用于在部署期间将代理附加到出色的应用程序,而无需更改任何应用程序代码,就像 SkyWalking Java 代理一样。

安装skywalking python agent

1pip install apache-skywalking

运行 sw-python 以查看它是否可用,您需要按环境变量传递配置。

配置skywalking python agent

1export SW_AGENT_NAME=服务名称
2# 服务器地址
3export SW_AGENT_COLLECTOR_BACKEND_SERVICES=127.0.0.1:11800

执行python程序

1sw-python run -p python app.py

启用 CLI 调试模式,以便在启动应用程序时查看代理日志:

1sw-python -d run python app.py