Supported OS
![Windows]()
개요
이 점검은 Datadog 에이전트를 통해 Harbor를 모니터링합니다.
설정
설치
Harbor 점검은 Datadog 에이전트 패키지에 포함되어 있습니다. 서버에 추가 설치가 필요하지 않습니다.
구성
호스트
호스트에서 실행 중인 에이전트에 대해 이 점검을 구성하려면:
메트릭 수집
에이전트의 설정 디렉토리의 루트의 conf.d/
폴더에 있는 harbor.d/conf.yaml
파일을 편집하여 Harbor 성능 데이터 수집을 시작합니다. 사용 가능한 모든 설정 옵션은 harbor.d/conf.yaml 샘플을 참조하세요.
참고: 설정에서 모든 유형의 사용자를 지정할 수 있지만 디스크 메트릭을 가져오려면 관리자 권한이 있는 계정이 필요합니다. harbor.projects.count
는 제공된 사용자가 액세스할 수 있는 프로젝트 수만 반영합니다.
에이전트를 재시작하세요.
로그 수집
Agent 버전 6.0 이상에서 사용 가능
Datadog Agent에서는 로그 수집이 기본적으로 비활성화되어 있습니다. datadog.yaml
파일에서 활성화해야 합니다.
harbor.d/conf.yaml
파일에 이 설정 블록을 추가하여 Harbor 로그 수집을 시작하세요.
logs:
- type: file
path: /var/log/harbor/*.log
source: harbor
service: '<SERVICE_NAME>'
에이전트를 재시작하세요.
컨테이너화
컨테이너화된 환경의 경우 자동탐지 통합 템플릿에 다음 파라미터를 적용하는 방법이 안내되어 있습니다.
메트릭 수집
파라미터 | 값 |
---|
<INTEGRATION_NAME> | harbor |
<INIT_CONFIG> | 비어 있음 또는 {} |
<INSTANCE_CONFIG> | {"url": "https://%%host%%", "username": "<USER_ID>", "password": "<USER_PASSWORD>"} |
로그 수집
Agent 버전 6.0 이상에서 사용 가능
Datadog Agent에서 로그 수집은 기본값으로 비활성화되어 있습니다. 이를 활성화하려면 쿠버네티스(Kubernetes) 로그 수집을 참조하세요.
파라미터 | 값 |
---|
<LOG_CONFIG> | {"source": "harbor", "service": "<SERVICE_NAME>"} |
검증
에이전트의 상태 하위 명령을 실행하고 점검 섹션에서 harbor
을 찾습니다.
수집한 데이터
메트릭
| |
---|
harbor.disk.free (gauge) | The amount of storage space that is free. Shown as byte |
harbor.disk.total (gauge) | The total amount of storage space. Shown as byte |
harbor.projects.count (gauge) | The total number of projects. |
harbor.registry.read_only (gauge) | The ‘read_only’ status of a registry. |
이벤트
Harbor 통합은 이벤트를 포함하지 않습니다.
서비스 점검
harbor.can_connect
Returns OK
if the Harbor API is reachable and authentication is successful, otherwise returns CRITICAL
.
Statuses: ok, critical
harbor.status
Returns OK
if the specified Harbor component is healthy, otherwise returns CRITICAL
. Returns UNKNOWN
with Harbor < 1.5.
Statuses: ok, unknown, critical
harbor.registry.status
Returns OK
if the service is healthy, otherwise returns CRITICAL
. Monitors the health of external registries used by Harbor for replication.
Statuses: ok, critical
트러블슈팅
도움이 필요하신가요? Datadog 지원 팀에 문의하세요.