메인 콘텐츠로 건너뛰기

Prometheus

API 처리량, API 지연, CPU 사용량, 메모리 사용량 등과 같은 Casdoor의 런타임 메트릭을 수집하려면 Prometheus 프로필을 구성해야 합니다.

global:
scrape_interval: 10s # The time interval for fetching metrics

scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'casdoor' # Name of the application to be monitored
static_configs:
- targets: ['localhost:8000'] # Back-end address of Casdoor deployment
metrics_path: '/api/metrics' # Path for collecting indicators

성공적인 구성 후에는 Prometheus에서 다음 정보를 찾을 수 있습니다:

info