Supported OS
![Mac OS]()
개요
Gearman 메트릭을 수집하면 다음을 할 수 있습니다.
- Gearman 성능 시각화
- 대기열에 있거나 실행 중인 작업 수 파악
- Gearman의 성능과 애플리케이션의 상관 관계 파악
설정
설치
Datadog 에이전트 패키지에 Gearman 점검이 포함되어 있기 때문에 Gearman 작업 서버에 새로운 설치를 할 필요가 없습니다.
구성
호스트
호스트에서 실행 중인 에이전트에 이 점검을 구성하는 방법:
에이전트 구성 디렉터리의 루트 수준에 있는 conf.d/
폴더에서 gearmand.d/conf.yaml
파일을 편집해 Gearman 성능 데이터 수집을 시작하세요. 사용할 수 있는 구성 옵션을 모두 보려면 샘플 gearmand.d/conf.yaml을 참고하세요.
init_config:
instances:
- server: localhost
port: 4730
[에이전트]를 다시 시작합니다3.
컨테이너화
컨테이너화된 환경의 경우 자동탐지 통합 템플릿에 다음 파라미터를 적용하는 방법이 안내되어 있습니다.
파라미터 | 값 |
---|
<INTEGRATION_NAME> | gearmand |
<INIT_CONFIG> | 비어 있음 또는 {} |
<INSTANCE_CONFIG> | {"server":"%%host%%", "port":"4730"} |
로그 수집
Datadog 에이전트에서는 기본적으로 로그 수집을 사용하지 않도록 설정되어 있습니다. datadog.yaml
파일에서 로그 수집을 사용하도록 설정합니다.
Gearman 로그를 수집하려면 gearmand.d/conf.yaml
파일에 다음 구성 블록을 추가하세요.
logs:
- type: file
path: /var/log/gearmand.log
source: gearman
path
파라미터 값을 내 환경에 맞게 바꾸세요. 사용할 수 있는 설정 옵션을 모두 보려면 샘플 gearmand.d/conf.yaml을 참고하세요.
에이전트를 재시작하세요.
쿠버네티스 환경에서 로그를 수집하기 위해 에이전트를 구성하는 것과 관련한 자세한 내용은 쿠버네티스 로그 수집을 참고하세요.
검증
에이전트의 status
하위 명령을 실행하고 Checks 섹션 아래에서 gearmand
를 찾으세요.
수집한 데이터
메트릭
| |
---|
gearman.queued (gauge) | The total number of jobs in the queue. Shown as task |
gearman.queued_by_task (gauge) | The number of jobs in the queue by task. Shown as task |
gearman.running (gauge) | The total number of running Gearman jobs. Shown as task |
gearman.running_by_task (gauge) | The number of running Gearman jobs by task. Shown as task |
gearman.unique_tasks (gauge) | The number of all functions registered with Gearman. Shown as task |
gearman.workers (gauge) | The total number of capable Gearman workers. Shown as process |
gearman.workers_by_task (gauge) | The number of capable Gearman workers by task. Shown as process |
이벤트
Gearman 점검에는 이벤트가 포함되어 있지 않습니다.
서비스 점검
gearman.can_connect
Returns CRITICAL
if the Agent check is unable to connect to the monitored Gearman instance. Returns OK
otherwise.
Statuses: ok, critical
트러블슈팅
도움이 필요하신가요? Datadog 지원 팀에 문의하세요.