Gitea

Supported OS Windows Mac OS

통합 버전1.0.2

개요

Gitea는 Go로 작성된 커뮤니티 관리형 경량 코드 호스팅 솔루션입니다.

이 통합은 Datadog Agent를 통해 Gitea 인스턴스를 모니터링합니다.

설정

사전 요구 사항

Gitea는 기본적으로 내부 메트릭을 노출하지 않습니다. app.ini 설정 파일에서 메트릭 엔드포인트를 노출하는 기본 제공 HTTP 서버를 활성화해야 합니다.

[metrics]
ENABLED = true

자세한 내용은 공식 설명서를 참조하세요.

설치

Gitea 통합은 기본적으로 Datadog Agent 패키지에 포함되어 있지 않으므로 설치해야 합니다.

Agent v7.36+의 경우 아래 지침에 따라 호스트에 Gitea 점검을 설치하세요. Docker Agent 또는 이전 버전의 Agent 과 함께 설치하려면 커뮤니티 통합 사용을 참조하세요.

  1. 다음 명령어를 실행해 에이전트 통합을 설치하세요.
datadog-agent integration install -t datadog-gitea==<INTEGRATION_VERSION>
  1. Agent 기반 통합과 유사하게 통합을 설정합니다.

구성

  1. Agent 설정 디렉터리 루트의 conf.d/ 폴더에서 gitea.d/conf.yaml 파일을 편집하여 Gitea 데이터 수집을 시작합니다. 사용 가능한 모든 구성 옵션은 샘플 gitea.d/conf.yaml을 참조하세요.

  2. 에이전트를 다시 시작합니다.

검증

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

수집한 데이터

메트릭

gitea.accesses
(gauge)
Number of Accesses.
gitea.actions
(gauge)
Number of Actions.
gitea.attachments
(gauge)
Number of Attachments.
gitea.comments
(gauge)
Number of Comments.
gitea.follows
(gauge)
Number of Follows.
gitea.hooktasks
(gauge)
Number of HookTasks.
gitea.issues
(gauge)
Number of Issues.
gitea.issues.closed
(gauge)
Number of closed Issues.
gitea.issues.open
(gauge)
Number of open Issues.
gitea.labels
(gauge)
Number of Labels.
gitea.loginsources
(gauge)
Number of LoginSources.
gitea.milestones
(gauge)
Number of Milestones.
gitea.mirrors
(gauge)
Number of Mirrors.
gitea.oauths
(gauge)
Number of Oauths.
gitea.organizations
(gauge)
Number of Organizations.
gitea.projects
(gauge)
Number of Projects.
gitea.projects_boards
(gauge)
Number of project Boards.
gitea.publickeys
(gauge)
Number of PublicKeys.
gitea.releases
(gauge)
Number of Releases.
gitea.repositories
(gauge)
Number of Repositories.
gitea.stars
(gauge)
Number of Stars.
gitea.teams
(gauge)
Number of Teams.
gitea.updatetasks
(gauge)
Number of UpdateTasks.
gitea.users
(gauge)
Number of Users.
gitea.watches
(gauge)
Number of Watches.
gitea.webhooks
(gauge)
Number of Webhooks.
gitea.go.info
(gauge)
Information about the Go environment.
gitea.go.goroutines
(gauge)
Number of goroutines that currently exist.
gitea.go.threads
(gauge)
Number of OS threads created.
gitea.metric_handler.requests_in_flight
(gauge)
Current number of scrapes being served.
gitea.metric_handler.requests.count
(count)
Total number of scrapes by HTTP status code.
gitea.process.cpu_seconds.count
(count)
Total user and system CPU time spent in seconds.
Shown as second
gitea.process.max_fds
(gauge)
Maximum number of open file descriptors.
gitea.process.open_fds
(gauge)
Number of open file descriptors.
gitea.process.resident_memory.bytes
(gauge)
Resident memory size in bytes.
Shown as byte
gitea.process.start_time
(gauge)
Start time of the process since unix epoch in seconds.
Shown as second
gitea.process.virtual_memory.bytes
(gauge)
Virtual memory size in bytes.
Shown as byte
gitea.process.virtual_memory.max_bytes
(gauge)
Maximum amount of virtual memory available in bytes.
Shown as byte

이벤트

Gitea 점검에는 이벤트가 포함되어 있지 않습니다.

서비스 점검

gitea.openmetrics.health
Returns CRITICAL if the check cannot access the Prometheus metrics endpoint of the Gitea instance.
Statuses: ok, critical

트러블슈팅

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

PREVIEWING: guacbot/translation-pipeline