cert-manager

Supported OS Mac OS Windows

Integration version4.1.0

개요

이 점검은 cert-manager에서 메트릭을 수집합니다.

Cert-Manager Overview Dashboard

설정

아래 지침을 따라 호스트에서 실행되는 에이전트에 대해 이 점검을 설치하고 설정하세요. 컨테이너화된 환경의 경우 이러한 지침을 적용하는 데 가이드가 필요하면 자동탐지 통합 템플릿을 참조하세요.

설치

cert_manager 점검은 Datadog 에이전트 패키지에 포함되어 있습니다. 서버에서 추가 설치가 필요하지 않습니다.

설정

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

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

검증

에이전트의 상태 하위 명령을 실행하고 점검 섹션에서 cert_manager를 찾습니다.

수집한 데이터

메트릭

cert_manager.certificate.expiration_timestamp
(gauge)
The date after which the certificate expires. Expressed as a Unix Epoch Time
Shown as second
cert_manager.certificate.ready_status
(gauge)
The ready status of the certificate
cert_manager.clock_time
(gauge)
The clock time given in seconds (from 1970/01/01 UTC)
Shown as second
cert_manager.controller.sync_call.count
(count)
The number of sync() calls made by a controller
cert_manager.http_acme_client.request.count
(count)
The number of requests made by the ACME client
cert_manager.http_acme_client.request.duration.count
(count)
The count of the HTTP request latencies in seconds for the ACME client
cert_manager.http_acme_client.request.duration.quantile
(gauge)
The quantiles of the HTTP request latencies in seconds for the ACME client
cert_manager.http_acme_client.request.duration.sum
(count)
The sum of the HTTP request latencies in seconds for the ACME client

이벤트

cert_manager 통합은 이벤트를 포함하지 않습니다.

서비스 검사

cert_manager.openmetrics.health
Returns CRITICAL if the agent fails to connect to the OpenMetrics endpoint, otherwise OK.
Statuses: ok, critical

트러블슈팅

이름 태그 복제

각 인증서 이름은 프로메테우스 페이로드에서 name 레이블 내에 노출되어 있으며 Datadog 에이전트에 의해 태그로 변환됩니다. 호스트가 또한 name 태그를 사용하는 경우(예를 들어, AWS 통합으로 자동 수집되는 경우), 이 통합에 따른 메트릭은 양 값로 표시됩니다. name 복제 태그를 피하려면, rename_labels 설정 파라미터를 사용하여 프로메테우스 레이블 name을 Datadog 태그 cert_name에 매핑할 수 있습니다. 이를 통해 cert_name 태그 내 단일 값으로 자격 증명을 식별할 수 있습니다.

init_config:
instances:
- openmetrics_endpoint: <OPENMETRICS_ENDPOINT>
  rename_labels:
    name: cert_name

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