Twemproxy

Supported OS Linux Windows Mac OS

통합 버전3.0.0

To find out if this integration is available in your organization, see your Datadog Integrations page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email support@ddog-gov.com.

개요

각 Twemproxy 서버의 전체 및 풀별 통계를 추적하세요. 이 Agent 검사는 클라이언트 및 서버 연결 및 오류, 요청 및 응답 속도, 프록시 입출력 바이트 등에 대한 메트릭을 수집합니다.

설정

설치

Agent의 Twemproxy 검사는 Datadog Agent 패키지에 포함되어 있으므로 Twemproxy 서버에 아무것도 설치할 필요가 없습니다.

구성

호스트

호스트에서 실행 중인 에이전트에 대해 이 점검을 구성하려면:

  1. Agent 구성 디렉터리 루트의 conf.d/ 폴더에 있는 twemproxy.d/conf.yaml 파일을 편집합니다. 사용 가능한 모든 구성 옵션은 샘플 twemproxy.d/conf.yaml을 참조하세요.

    init_config:
    
    instances:
      - host: localhost
        port: 2222
    
  2. Agent를 다시 시작하여 Datadog로 Twemproxy 메트릭 전송을 시작합니다.

로그 수집
  1. Datadog Agent에서는 로그 수집이 기본적으로 비활성화되어 있습니다. datadog.yaml 파일에서 활성화해야 합니다.

    logs_enabled: true
    
  2. Apache 로그 수집을 시작하려면 이 구성 블록을 twemproxy.d/conf.yaml 파일에 추가하세요.

    logs:
      - type: file
        path: "<LOG_FILE_PATH>"
        source: twemproxy
        service: "<SERVICE_NAME>"
    

    pathservice 파라미터 값을 변경하고 사용자 환경에 맞게 구성합니다. 사용 가능한 모든 구성 옵션은 샘플 twemproxy.d/conf.yaml을 참조하세요.

  3. 에이전트를 재시작하세요.

컨테이너화

컨테이너화된 환경의 경우 자동탐지 통합 템플릿에 다음 파라미터를 적용하는 방법이 안내되어 있습니다.

파라미터
<INTEGRATION_NAME>twemproxy
<INIT_CONFIG>비어 있음 또는 {}
<INSTANCE_CONFIG>{"host": "%%host%%", "port":"22222"}
로그 수집

로그 수집은 기본적으로 Datadog Agent에서 비활성화 상태입니다. 활성화하려면 Kubernetes 로그 수집 설명서를 참조하세요.

파라미터
<LOG_CONFIG>{"source": "twemproxy", "service": "<SERVICE_NAME>"}

검증

Agent 상태 하위 명령을 실행하고 확인 섹션에서 twemproxy를 찾습니다.

수집한 데이터

메트릭

twemproxy.client_connections
(gauge)
number of active client connections
Shown as connection
twemproxy.client_eof
(gauge)
number of eof on client connections
Shown as error
twemproxy.client_err
(gauge)
number of errors on client connections
Shown as error
twemproxy.curr_connections
(gauge)
number of current connections
Shown as connection
twemproxy.forward_error
(gauge)
number of times we encountered a forwarding error
Shown as error
twemproxy.fragments
(gauge)
number of fragments created from a multi-vector request
Shown as request
twemproxy.in_queue
(gauge)
number of requests in incoming queue
Shown as request
twemproxy.in_queue_bytes
(gauge)
current request bytes in incoming queue
Shown as byte
twemproxy.out_queue
(gauge)
number of requests in outgoing queue
Shown as request
twemproxy.out_queue_bytes
(gauge)
current request bytes in outgoing queue
Shown as byte
twemproxy.request_bytes
(gauge)
total request bytes
Shown as byte
twemproxy.requests
(gauge)
number of requests
Shown as request
twemproxy.response_bytes
(gauge)
total response bytes
Shown as byte
twemproxy.responses
(gauge)
number of responses
Shown as response
twemproxy.server_connections
(gauge)
number of active server connections
Shown as connection
twemproxy.server_ejects
(gauge)
number of times backend server was ejected
Shown as event
twemproxy.server_eof
(gauge)
number of eof on server connections
Shown as error
twemproxy.server_err
(gauge)
number of errors on server connections
Shown as error
twemproxy.server_timedout
(gauge)
number of timeouts on server connections
Shown as timeout
twemproxy.total_connections
(gauge)
rate of new connections
Shown as connection

이벤트

Twemproxy 점검은 이벤트를 포함하지 않습니다.

서비스 점검

twemproxy.can_connect

Returns Critical if the Agent cannot send data to the Twemproxy endpoint, OK otherwise.

Statuses: ok, critical

트러블슈팅

도움이 필요하신가요? Datadog 지원팀에 문의하세요.