Prometheus
Um die Laufzeitmetriken von Casdoor zu sammeln, wie z.B. API-Durchsatz, API-Latenz, CPU-Auslastung, Speichernutzung und mehr, müssen Sie Ihr Prometheus-Profil konfigurieren.
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
Nach erfolgreicher Konfiguration finden Sie die folgenden Informationen in Prometheus:
