1. 개요

Datadog을 통한 Apache HTTP Server 모니터링

2. 설정

2-1. Datadog 에이전트 설치

2-2. mod_status 설정

2-3. Metric Collection

/etc/datadog-agent/conf.d/apache.d/conf.yaml 생성

init_config:

instances:
  - apache_status_url: http://127.0.0.1/server-status?auto
  #  apache_user: example_user # if apache_status_url needs HTTP basic auth
  #  apache_password: example_password
  #  disable_ssl_validation: true # if you need to disable SSL cert validation, i.e. for self-signed certs

2-4. Log Collection

/etc/datadog-agent/conf.d/apache.d/conf.yaml 파일에 추가

logs:
    - type: file
      path: /var/log/access_log_*
      source: apache
      sourcecategory: http_web_access
      service: apache

    - type: file
      path: /var/log/apache2/error_log_*
      source: apache
      sourcecategory: http_web_access
      service: apache

2-5. Datadog 에이전트 재시작

$ sudo service datadog-agent restart