HAProxy – Standardprüfungen und Richtlinien

  • Freigeben Version: Washingtondc
  • Aktualisiert 1. Februar 2024
  • 1 Minute Lesedauer
  • Agent Client Collector bietet die folgenden Standardprüfungen und Richtlinien für die HAProxy-Systemüberwachung.

    Tabelle : 1. Richtlinie für HAProxy-Ereignisse
    Typ Prüfung Beschreibung Verwendung Ausgabe
    Event check-haproxy Ruft die Details des HAProxy-Lastenausgleichsmoduls ab, damit bestimmt werden kann, ob es ausgeführt wird.
    commonchecks    check-haproxy (options)
    -h    host host
    -P    port Port on which the HAProxy server is running
    -A    all services all services
    -q    Path on which HAProxy Stats URI is configured
    -use ssl    ssl

    Verwendungsbeispiel: check-haproxy.rb -h localhost -P 8080 -A true -q stats -use_ssl false

    CheckHAProxy OK: UP: 50% of 4 // services, DOWN: backend/nginx1[L4CON], backend/BACKEND
    Tabelle : 2. Richtlinie für HAProxy-Metriken
    Typ Prüfung Beschreibung Verwendung Ausgabe
    Metrik metrics-check-haproxy Ruft die Metriken des HAProxy-Lastenausgleichsmoduls ab, damit bestimmt werden kann, ob es ausgeführt wird.
    commonchecks metrics-check-haproxy (options) 
    
    -q host		Path on which HAProxy Stats URI is configured 
    
    -P port		Port on which the HAProxy server is running 
    
    -c host	       host name

    Verwendungsbeispiel: metrics-check-haproxy.rb -q stats -P 8080 -c localhost

    <hostname>.haproxy.frontend.session_current 0 1652265603
    <hostname>.haproxy.frontend.session_total 0 1652265603
    <hostname>.haproxy.backend.session_current 0 1652265603 
    <hostname>.haproxy.backend.session_total 1 1652265603