PHP APCu

Supported OS Linux Mac OS

통합 버전0.0.2

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.

개요

이 점검은 Datadog 에이전트를 통해 PHP APCu를 모니터링합니다.

설정

Datadog 에이전트 패키지에는 PHP APCu 점검이 포함되어 있지 않으므로 설치해야 합니다.

설치

에이전트 v7.21+/v6.21+의 경우, 아래 지침에 따라 PHP APCu 점검을 호스트에 설치하세요. 도커(Docker) 에이전트 또는 이전 버전의 에이전트에 설치하려면 커뮤니티 통합을 참조하세요.

  1. 다음 명령어를 실행해 에이전트 통합을 설치하세요.

    datadog-agent integration install -t datadog-php_apcu==<INTEGRATION_VERSION>
    
  2. 통합을 코어 통합과 유사하게 설정하세요.

APCu

APCu는 기본적으로 메트릭을 노출시키지 않으므로 이 통합에는 메트릭 내보내기가 포함되어 있습니다.

/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/php_apcu/assets/exporter/apcu-dd-handler.php

에이전트 설정의 경우, 이 파일 이름으로 내보내기를 직접 참조하거나 웹 서버에서 별칭을 지정합니다. 예를 들어 Apache를 사용하는 경우 웹 서버의 별칭 설정 파일은 다음과 같습니다.

Alias /apcu-status /opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/php_apcu/assets/exporter/apcu-dd-handler.php
<Location /apcu-status>
    Require all denied
    Require local
</Location>

설정

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

    instances
      - url: http://localhost/apcu-status
    
  2. 에이전트를 재시작합니다.

검증

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

수집한 데이터

메트릭

php_apcu.cache.mem_size
(gauge)
used memory size
Shown as byte
php_apcu.cache.num_slots
(gauge)
number of cache slots
Shown as unit
php_apcu.cache.ttl
(gauge)
default ttl
Shown as second
php_apcu.cache.num_hits
(gauge)
cache hit count
Shown as hit
php_apcu.cache.num_misses
(gauge)
cache miss count
Shown as miss
php_apcu.cache.num_inserts
(gauge)
cache insert count
Shown as set
php_apcu.cache.num_entries
(gauge)
number of cache entries
Shown as item
php_apcu.cache.num_expunges
(gauge)
number of cache expunges
Shown as eviction
php_apcu.cache.uptime
(gauge)
uptime
Shown as second
php_apcu.sma.avail_mem
(gauge)
available memory size
Shown as byte
php_apcu.sma.seg_size
(gauge)
total memory size
Shown as byte
php_apcu.sma.num_seg
(gauge)
number of cache segments
Shown as unit

이벤트

PHP APCu 통합에는 이벤트가 포함되어 있지 않습니다.

서비스 점검

php_apcu.can_connect

Returns CRITICAL if the Agent is unable to connect to and collect metrics from the monitored APCu instance. Returns OK otherwise.

Statuses: ok, critical

트러블슈팅

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