본문 바로가기
WIKI 기술 지식 베이스

사용 가능한 디스크 공간 모니터링하기

원문 보기 위키 갱신

사용 가능한 디스크 공간 모니터링하기 (Monitoring Available Disk Space)

모니터링하는 흔한 시스템 메트릭 중 하나는 특정 시스템이나 호스트의 사용 가능한 디스크 공간이에요. 이 가이드는 Datadog에 보고하는 호스트의 여유 디스크 공간이 10% 미만으로 떨어질 때 경보를 발생시키는 모니터를 만드는 방법을 안내해요.

출처: 문서

본문

사용 가능한 디스크 공간에 대한 모니터를 만들려면:

  1. 탐색 메뉴에서 Monitors를 클릭해요.

  2. New Monitor를 클릭해요.

  3. 모니터 유형으로 Metric을 선택해요.

    1. Define the metric 섹션에서 메트릭으로 system.disk.free를 사용하고 avg by로 host를 선택해요. 이것이 Query a예요.

    2. Add Query를 클릭해요. 이 메트릭에는 메트릭으로 system.disk.total을 사용하고 avg by로 host를 사용해요. 이것이 Query b예요.

    3. 나타나는 수식에서 a + b를 a/b*100으로 바꿔요.

      {% image source="https://docs.dd-static.net/images/monitors/guide/monitoring_free_disk_space.70d6f8be88121b620d1af18a1782e310.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/monitors/guide/monitoring_free_disk_space.70d6f8be88121b620d1af18a1782e310.png?auto=format&fit=max&w=850&dpr=2 2x" alt="Query definition of system.disk.free and system.disk.total with formula a/b*100" /%}

    4. Evaluation Details 아래에서 원하는 평가 간격(evaluation interval)을 선택해요.

      {% image source="https://docs.dd-static.net/images/monitors/guide/monitoring_free_disk_space_alert_criteria.e9bf91859616ccc09cbaafe6c1728a17.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/monitors/guide/monitoring_free_disk_space_alert_criteria.e9bf91859616ccc09cbaafe6c1728a17.png?auto=format&fit=max&w=850&dpr=2 2x" alt="Alert criteria configuration set to below threshold, with a value of 10." /%}

  4. Set alert conditions 아래에서 임계값 옵션에서 below를 선택하고 Alert threshold 필드에 10을 입력해요.

  5. Configure notifications & automations에서 모니터 이름을 지정한 다음 알림 메시지를 작성해요. 관련 세부 정보와 의미 있는 메시지 템플릿을 포함해요. 예를 들어:

      {{#is_alert}} Alert: Free disk space is below {{threshold}}% on {{host.name}}. {{/is_alert}}
      {{#is_warning}} Warning: Free disk space is below {{warn_threshold}}% on {{host.name}}. {{/is_warning}}
      Disk space available: {{value}}%
    
  6. Create를 클릭해 모니터를 저장해요.