본문으로 건너뛰기

소개

exem-python-agent 모듈 설명

  • Python 기반의 프로세스에 module 형태로 구동하여 Python 기반 웹 프레임워크를 추적합니다. TCP를 이용하여 receiver로 전송합니다.

exem-python-agent와 receiver의 통신 구조

  • exem-python-agent는 TCP를 이용하여 Receiver와 통신을 합니다.

지원 환경

1. Python 버전

  • Python 3.7 이상

2. 프레임워크

  • Django WSGI
  • Django ASGI v3.0.20+
  • Flask
  • FastAPI

3. 데이터베이스

  • SQLite ( sqlite3 , pysqlite3 )
  • MySQL ( pymysql , MySQLdb )
  • Oracle ( cx_Oracle )
  • Postgresql ( psycopg2 )
  • Redis, redis-om
  • mongodb ( pymongo, motor ) v3.0.12+

4. 외부 호출

  • HttpLib
  • Requests
  • Urllib3
  • aiohttp v3.0.13+
  • HTTPX v3.0.18+

5. 기타

  • Kafka ( kafka_python, confluent_kafka )
    • kafka consumer의 경우 decorator를 이용
  • Apscheduler

▣ 지원 환경 확인 방법

  • python 버전정보
    • python --version
  • pip 설치 리스트
    • pip list

Package 구조

패키지명 : EXEM-PYTHON-AGENT-[버전].tar.gz

  • 위 패키지를 압축 풀면 생성되는 패키지 구조
exem
`-- python
|-- cfg
| `-- agent
| |-- local.advice
| `-- python.conf
| `-- tmp
| |-- deploy.yaml
| |-- deploy_initcontainer.yaml
| `-- Dockerfile
|-- lib
| `-- exem-python-agent-<version>.tar.gz
|-- log
| |-- exem-python-agent.init.log
| `-- exem-python-agent_<wasid>.log
`-- pkg_version.sh