Python エージェントのインストールの検証
Python エージェントを使用して Python アプリケーションを展開し、アプリケーションに対する負荷を生成すると、設定されたアプリケーション、階層、およびノードの名前に基づいて、アプリケーションが AppDynamics コントローラに表示されます。エージェントとプロキシ、またはプロキシとコントローラ間の通信の問題をトラブルシューティングするには、アプリケーションおよびプロキシコンテナにログオンします。アプリケーションプロセスがリクエストを受信するまで、ログは表示されないことに注意してください。
# check that the app and proxy containers are running
kubectl -n <app ns> get pods
NAME READY STATUS RESTARTS AGE
mypython-app-7687956c77-q5z85 2/2 Running 0 40s
# if both containers aren't running, check events regarding image pulls, etc
kubectl -n <app ns> get events
# check the Python Agent logs in the application container for issues communicating with the proxy running in the sidecar
kubectl -n <app ns> exec -it <pod name> -c <app container name> /bin/bash
cd /tmp/appd/logs
cat <app-node names>.log
# check the proxy logs for issues communicating with the AppDynamics Controller
kubectl -n <app ns> exec -it <pod name> -c proxy /bin/bash
cd /tmp/appd/logs/<app folder>
cat agent.<timestamp>.log