Use Prometheus to collect casdoor's runtime metrics, including API Throughput, API Latency, CPU Usage, Memory Usage, and so on, as you should configure your Prometheus profile
scrape_interval: 10s #The time interval for fetching metrics
- job_name: 'prometheus'
- targets: ['localhost:9090']
- job_name: 'casdoor' #Name of the application to be monitored
- targets: ['localhost:8000'] #Back-end address of casdoor deployment
metrics_path: '/api/metrics' #Path for collecting indicators
After the configuration is successful, you will find the following information in Prometheus