appdynamics/python-agent-init该镜像为AppDynamics提供的Python代理安装仓库,旨在简化容器环境中Python应用性能监控代理的部署流程。通过集成此镜像,用户可快速配置并安装AppDynamics Python APM代理,实现对容器化Python应用的实时性能数据采集、事务追踪和异常监控,并与AppDynamics Controller无缝对接。
bashdocker pull appdynamics/python-agent-repo:<tag>
注:
<tag>需替换为具体版本号,如latest或特定代理版本。
| 环境变量名称 | 描述 | 示例值 | 是否必填 |
|---|---|---|---|
| APPDYNAMICS_CONTROLLER_HOST | AppDynamics Controller主机地址 | controller.example.com | 是 |
| APPDYNAMICS_CONTROLLER_PORT | Controller端口 | 443 | 是 |
| APPDYNAMICS_CONTROLLER_SSL_ENABLED | 是否启用SSL连接Controller | true | 是 |
| APPDYNAMICS_AGENT_ACCOUNT_NAME | 控制器账户名 | customer1 | 是 |
| APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY | 账户访问密钥 | abc123... | 是 |
| APPDYNAMICS_AGENT_APPLICATION_NAME | 监控的应用名称 | PythonApp | 是 |
| APPDYNAMICS_AGENT_TIER_NAME | 应用层级名称 | PythonTier | 是 |
| APPDYNAMICS_AGENT_NODE_NAME | 节点名称(容器内唯一) | node-$(hostname) | 是 |
| PYTHON_AGENT_VERSION | Python代理版本 | 21.10.0 | 否(默认latest) |
| APPDYNAMICS_AGENT_PROXY_HOST | 代理服务器主机(如需通过代理连接Controller) | proxy.example.com | 否 |
| APPDYNAMICS_AGENT_PROXY_PORT | 代理服务器端口 | 8080 | 否 |
bashdocker run -d \ -e APPDYNAMICS_CONTROLLER_HOST=controller.example.com \ -e APPDYNAMICS_CONTROLLER_PORT=443 \ -e APPDYNAMICS_CONTROLLER_SSL_ENABLED=true \ -e APPDYNAMICS_AGENT_ACCOUNT_NAME=customer1 \ -e APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY=your-access-key \ -e APPDYNAMICS_AGENT_APPLICATION_NAME=PythonApp \ -e APPDYNAMICS_AGENT_TIER_NAME=PythonTier \ -e APPDYNAMICS_AGENT_NODE_NAME=node-$(hostname) \ appdynamics/python-agent-repo:latest
yamlversion: '3' services: python-agent-install: image: appdynamics/python-agent-repo:latest environment: - APPDYNAMICS_CONTROLLER_HOST=controller.example.com - APPDYNAMICS_CONTROLLER_PORT=443 - APPDYNAMICS_CONTROLLER_SSL_ENABLED=true - APPDYNAMICS_AGENT_ACCOUNT_NAME=customer1 - APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY=your-access-key - APPDYNAMICS_AGENT_APPLICATION_NAME=PythonApp - APPDYNAMICS_AGENT_TIER_NAME=PythonTier - APPDYNAMICS_AGENT_NODE_NAME=node-${HOSTNAME} volumes: - ./agent-install:/appdynamics/agent # 可选,挂载本地目录保存安装文件
安装完成后,可通过以下方式验证代理是否正常运行:
docker logs <container-id>,确认无错误信息
manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务