HAProxy 기본 검사 및 정책

  • 릴리스 버전: Xanadu
  • 업데이트 날짜 2024년 08월 01일
  • 소요 시간: 1분
  • 에이전트 클라이언트 수집기는 HAProxy 모니터링에 대해 다음과 같은 기본 검사 및 정책을 제공합니다.

    표 1. HAProxy 이벤트 정책
    유형 검사 설명 사용법 출력
    이벤트 check-haproxy HAProxy 부하 분산 장치의 상세 정보를 검색하여 실행 중인지 확인합니다.
    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

    사용 예: 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
    표 2. HAProxy 메트릭 정책
    유형 검사 설명 사용법 출력
    메트릭 metrics-check-haproxy HAProxy 부하 분산 장치 메트릭을 검색하여 실행 중인지 확인합니다.
    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

    사용 예: 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