Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 26 additions & 17 deletions content/en/monitors/types/real_user_monitoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ further_reading:

## Overview

Datadog's [Real User Monitoring (RUM)][1] provides real-time visibility into individual user activity for web and mobile applications. It addresses performance tracking, error management, analytics, and support use cases.
Datadog's [Real User Monitoring (RUM)][1] provides real-time visibility into individual user activity for web and mobile applications. It addresses performance tracking, error management, analytics, and support use cases. With [RUM without Limits™][8], you can use metric-based monitors to alert on your full unsampled traffic with 15-month retention. Metric-based monitors support advanced alerting conditions such as anomaly detection.

After you enable RUM for your organization, you can create a RUM monitor to alert you when a specific RUM event type exceeds a predefined threshold over a given period of time.

Expand All @@ -31,36 +31,36 @@ To create a RUM monitor in Datadog, first navigate to [**Monitors** > **New Moni

<div class="alert alert-info">There is a default limit of 1000 RUM monitors per account. If you are encountering this limit, consider using <a href="/monitors/configuration/?tab=thresholdalert#alert-grouping">multi alerts</a>, or <a href="/help/">Contact Support</a>.</div>

From there, you can click **New Monitor**, then:

- **Start with a template**: Datadog provides several pre-built templates for common RUM monitoring scenarios like error rates, performance vitals, or availability checks. Browse the [full template gallery][9] to get started.
- **Build a custom monitor**: Choose from out-of-the-box metrics or custom metrics, then scope to your application, specific pages, or views.

### Define the search query

As you expand your search filters, the graph above the search bar updates.

1. Construct a search query using the same logic as a [RUM Explorer search][3].
2. Choose to monitor over a RUM event count, [facet][4], or [measure][5].
2. Choose to monitor over [full traffic metrics or retained events][10].
3. Choose to monitor over a RUM event count, [facet][4], or [measure][5].
* **Monitor over a RUM event count**: Use the search bar (optional) and do **not** select a facet or measure. Datadog evaluates the number of RUM events over a selected time frame, then compares it to the threshold conditions.
* **Monitor over a facet**: If you select a [facet][4], the monitor alerts over the `Unique value count` of the facet.
* **Monitor over measure**: If you select a [measure][5], the monitor alerts over the numerical value of the RUM facet (similar to a metric monitor). Select an aggregation type (`min`, `avg`, `sum`, `median`, `pc75`, `pc90`, `pc95`, `pc98`, `pc99`, or `max`).
3. Group RUM events by multiple dimensions (optional):
4. Group RUM events by multiple dimensions (optional):
All RUM events matching the query are aggregated into groups based on the value of up to four facets. When there are multiple dimensions, the top values are determined according to the first dimension, then according to the second dimension within the top values of the first dimension, and so on up to the last dimension. The dimensions limit depends on the total number of dimensions:
* **1 facet**: 1000 top values
* **2 facets**: 30 top values per facet (at most 900 groups)
* **3 facets**: 10 top values per facet (at most 1000 groups)
* **4 facets**: 5 top values per facet (at most 625 groups)



4. Configure the alerting grouping strategy (optional).
* **Simple-Alert**: Simple alerts aggregate over all reporting sources. You receive one alert when the aggregated value meets the set conditions. If the query has a `group by` and you select **Simple-Alert**, you get one alert when one or multiple groups values breach the threshold. You may use this strategy to reduce notification noise.
* **Multi Alert**: Multiple alerts apply the alert to each source according to your group parameters. An alerting event is generated for each group that meets the set conditions. For example, you can group a query by `@browser.name` to receive a separate alert for each browser when the number of errors is high.

{{< img src="monitors/monitor_types/rum/define-the-search-query.png" alt="Define the search query" style="width:80%;" >}}

5. Add multiple queries and apply formulas and functions (optional):
6. Add multiple queries and apply formulas and functions (optional):

* **Multiple queries**: Click **Add Query** to analyze multiple different sets of RUM data in relation to each other.
* **Formulas and functions**: After adding your desired queries, click the **Add Function** icon to add a mathematical computation. The example below calculates the error rate on a cart page using the formula `(a/b)*100`.

{{< img src="monitors/monitor_types/rum/rum_multiple_queries_2.png" 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." style="width:80%;" >}}
{{< img src="monitors/monitor_types/rum/rum_multiple_queries_3.png" 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." style="width:80%;" >}}

Optionally, you can add a [custom schedule][12] to set a specific evaluation time and control the evaluation frequency of your monitor.

### Set alert conditions

Expand All @@ -77,15 +77,15 @@ To receive a notification when an application has stopped sending RUM events, se

When splitting the monitor by any dimension (tag or facet) and using a `below` condition, the alert is triggered **if and only if** there are RUM events for a given group, and the count is below the threshold—or if there are no RUM events for **all** of the groups.

#### Alerting Examples
#### Alerting examples

For example, this monitor triggers if and only if there are no RUM events for all applications:

{{< img src="monitors/monitor_types/rum/rum_monitoring_by_application_id.png" 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" style="width:70%;" >}}
{{< img src="monitors/monitor_types/rum/rum_monitoring_by_application_id-1.png" 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" style="width:70%;" >}}

And this monitor triggers if there are no logs for the application `Shop.ist`:

{{< img src="monitors/monitor_types/rum/rum_monitoring_by_shopist.png" 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" style="width:70%;" >}}
{{< img src="monitors/monitor_types/rum/rum_monitoring_by_shopist-1.png" 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" style="width:70%;" >}}

#### Advanced alert conditions

Expand All @@ -95,7 +95,11 @@ For more information about advanced alert options such as evaluation delay, see

For more information about the **Configure notifications and automations** section, see [Notifications][7].

## Further Reading
### Permissions and audit notifications

For more information about the **Define permissions and audit notifications** section, see [Permissions][11].

## Further reading

{{< partial name="whats-next/whats-next.html" >}}

Expand All @@ -106,3 +110,8 @@ For more information about the **Configure notifications and automations** secti
[5]: /real_user_monitoring/explorer/?tab=measures#setup-facets-measures
[6]: /monitors/configuration/#advanced-alert-conditions
[7]: /monitors/notify/
[8]: /real_user_monitoring/rum_without_limits
[9]: https://app.datadoghq.com/monitors/templates?q=real%20user%20monitoring&origination=installed&p=1
[10]: /real_user_monitoring/guide/alerting-with-rum/#choosing-between-monitoring-metrics-and-events
[11]: /monitors/configuration/?tab=evaluateddata#permissions
[12]: /monitors/guide/custom_schedules/?tab=day
Loading
Loading