cdp monitoring python sdk
Project description
cdp-monitoring
fastapi prometheus + opentelemetry sdk
Install package
VERSION=0.1.0
pip install git+https://github.daumkakao.com/cdpdev/cdp-monitoring.git#${VERSION}
Usage
1. Tempo url 을 환경변수로 설정
설정되어 있지 않은 경우 모니터링도 비활성화
export TEMPO_URL=""
2. 모니터링 대상 FastAPI 앱을 init_monitoring 함수의 인자로 전달
# app 생성
from fastapi import FastAPI
app = FastAPI(title="My FastAPI App")
# 모니터링 설정 적용
from cdp_monitoring import init_monitoring
init_monitoring(app)
Uninstall package
pip uninstall cdp-monitoring
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cdp_monitoring-0.1.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for cdp_monitoring-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd4fa0d7821faa6b788e97c07b395c261b6deb316779dfad997ab1beb1b3a732 |
|
MD5 | d82fb5e6a77c9517bcac6dcfa29f8696 |
|
BLAKE2b-256 | e28dcff669badde3d061bf4d5c525118aaed6429519dba0d0eb512e77f717a1d |