실사용자 모니터링 모니터
Real User Monitoring(RUM) 모니터는 웹 및 모바일 애플리케이션의 사용자 활동에 대한 실시간 가시성을 제공해요. 특정 RUM 이벤트 유형이 일정 기간 동안 미리 정의된 임계값을 초과하면 알림을 보내도록 구성할 수 있지요.
출처: 문서
본문
개요
Datadog의 Real User Monitoring(RUM)은 웹 및 모바일 애플리케이션의 개별 사용자 활동에 대한 실시간 가시성을 제공해요. 성능 추적, 오류 관리, 분석, 지원 사용 사례를 다룹니다. RUM without Limits™를 사용하면 메트릭 기반 모니터로 전체 비샘플링 트래픽에 대해 알림을 보낼 수 있고, 이상 징후 감지 같은 고급 알림 조건을 지원하는 15개월 분량의 데이터를 확보할 수 있어요.
조직에 대해 RUM을 활성화한 후 RUM 모니터를 만들어 특정 RUM 이벤트 유형이 일정 기간 동안 미리 정의된 임계값을 초과하면 알림을 보낼 수 있어요.
RUM 모니터 만들기
Datadog에서 RUM 모니터를 만들려면 먼저 Monitors > New Monitor > Real User Monitoring으로 이동하세요.
{% alert level="info" %} 계정당 기본 RUM 모니터 제한은 1000개예요. 이 제한에 도달했다면 multi alerts 사용을 고려하거나, Support에 문의하세요. {% /alert %}
다음으로, 모니터를 만드는 다음 방법 중 하나를 선택하세요.
- 템플릿으로 시작: Datadog는 오류율, 성능 바이탈, 가용성 점검 같은 일반적인 RUM 모니터링 시나리오를 위한 여러 사전 구축 템플릿을 제공해요. 전체 템플릿 갤러리를 찾아보고 시작하세요.
- 커스텀 모니터 구축: 기본 제공 메트릭 또는 커스텀 메트릭 중에서 선택한 다음, 애플리케이션, 특정 페이지, 또는 뷰로 범위를 한정하세요.
검색 쿼리 정의
검색 필터를 확장하면 검색 바 위의 그래프가 업데이트돼요.
-
RUM Explorer search와 동일한 로직으로 검색 쿼리를 구성하세요.
-
전체 트래픽 메트릭 또는 보존된 이벤트 중 무엇을 모니터링할지 선택하세요.
-
RUM 이벤트 개수, facet, 또는 measure 중 무엇을 모니터링할지 선택하세요.
- RUM 이벤트 개수 모니터링: 검색 바를 사용하고(선택 사항) facet이나 measure를 선택하지 마세요. Datadog는 선택한 시간 범위 동안의 RUM 이벤트 수를 평가한 다음 임계값 조건과 비교해요.
- facet 모니터링: facet을 선택하면 모니터는 facet의 Unique value count(고유 값 개수)에 대해 알림을 보내요.
- measure 모니터링: measure를 선택하면 모니터는 RUM facet의 숫자 값(메트릭 모니터와 유사)에 대해 알림을 보내요. 집계 유형(
min,avg,sum,median,pc75,pc90,pc95,pc98,pc99, 또는max)을 선택하세요.
-
RUM 이벤트를 여러 차원으로 그룹화하세요(선택 사항): 쿼리와 일치하는 모든 RUM 이벤트는 최대 네 개의 facet 값에 따라 그룹으로 집계돼요. 여러 차원이 있을 때 상위 값은 첫 번째 차원에 따라 결정된 다음, 첫 번째 차원의 상위 값 내에서 두 번째 차원에 따라 결정되고, 마지막 차원까지 이어져요. 차원 제한은 총 차원 수에 따라 달라져요.
- 1개 facet: 상위 1000개 값
- 2개 facet: facet당 상위 30개 값(최대 900개 그룹)
- 3개 facet: facet당 상위 10개 값(최대 1000개 그룹)
- 4개 facet: facet당 상위 5개 값(최대 625개 그룹)
-
여러 쿼리를 추가하고 수식과 함수를 적용하세요(선택 사항).
- 여러 쿼리: Add Query를 클릭해 서로 관련된 여러 서로 다른 RUM 데이터 세트를 분석하세요.
- 수식과 함수: 원하는 쿼리를 추가한 후 Add Function 아이콘을 클릭해 수학적 계산을 추가하세요. 아래 예시는 장바구니(cart) 페이지의 오류율을 수식
(a/b)*100으로 계산해요.
{% image source="https://docs.dd-static.net/images/monitors/monitor_types/rum/rum_multiple_queries_3.dcc9fb59cc4802850a89bd687f7edde0.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/monitors/monitor_types/rum/rum_multiple_queries_3.dcc9fb59cc4802850a89bd687f7edde0.png?auto=format&fit=max&w=850&dpr=2 2x" alt="A monitor configured to alert on the error rate of a cart page. This monitor has two queries (a and b) and contains a formula: (a/b)*100." /%}
선택적으로 custom schedule을 추가해 특정 평가 시각을 설정하고 모니터의 평가 빈도를 제어할 수 있어요.
알림 조건 설정
메트릭이 임계값을 넘을 때마다 알림이 트리거돼요.
- 메트릭이
above(위),above or equal to(위 또는 같음),below(아래), 또는below or equal to(아래 또는 같음)일 때 트리거돼요. - 지난
5 minutes,15 minutes,1 hour동안, 또는 5분에서 48시간 사이의 값을 설정하려면custom을 사용해요. - Alert threshold
<NUMBER>. - Warning threshold
<NUMBER>.
데이터 없음 및 아래 알림
애플리케이션이 RUM 이벤트 전송을 중단했을 때 알림을 받으려면 조건을 below 1로 설정하세요. 이는 주어진 시간 범위 내 모든 집계 그룹에서 모니터 쿼리와 일치하는 RUM 이벤트가 없을 때 알림을 보내요.
모니터를 어떤 차원(태그 또는 facet)으로 분할하고 below 조건을 사용하면, 특정 그룹에 RUM 이벤트가 있고 개수가 임계값보다 낮을 때—또는 모든 그룹에 RUM 이벤트가 없을 때에만 알림이 트리거돼요.
알림 예시
예를 들어, 이 모니터는 모든 애플리케이션에 RUM 이벤트가 없을 때만 트리거돼요.
{% image source="https://docs.dd-static.net/images/monitors/monitor_types/rum/rum_monitoring_by_application_id-1.21b66ba6bc393b8e433abeaf18ada233.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/monitors/monitor_types/rum/rum_monitoring_by_application_id-1.21b66ba6bc393b8e433abeaf18ada233.png?auto=format&fit=max&w=850&dpr=2 2x" alt="The monitor configuration page with the search query left blank, set to the count of all RUM events and grouped by @application.id over the last 5 minutes. The Set alert conditions section is configured to trigger when the value is below the threshold of 1, and if data is missing for more than 5 minutes it is configured to evaluate as zero" /%}
이 모니터는 Shop.ist 애플리케이션에 로그가 없으면 트리거돼요.
{% image source="https://docs.dd-static.net/images/monitors/monitor_types/rum/rum_monitoring_by_shopist-1.5ec5b0787fa15d04d0dfd80ec4e69e36.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/monitors/monitor_types/rum/rum_monitoring_by_shopist-1.5ec5b0787fa15d04d0dfd80ec4e69e36.png?auto=format&fit=max&w=850&dpr=2 2x" alt="The monitor configuration page with Application Id:Shopist entered in the search query, set to the count of all RUM events matching that application over the last 5 minutes. The Set alert conditions section is configured to trigger when the value is below the threshold of 1, and if data is missing for more than 5 minutes it is configured to evaluate as zero" /%}
고급 알림 조건
evaluation delay 같은 고급 알림 옵션에 대한 자세한 내용은 Configure Monitors를 참고하세요.
알림
Configure notifications and automations 섹션에 대한 자세한 내용은 Notifications를 참고하세요.
권한 및 감사 알림
Define permissions and audit notifications 섹션에 대한 자세한 내용은 Permissions를 참고하세요.
더 알아보기 (Learn more)
추가로 도움이 되는 문서, 링크, 아티클: