---
title: Control Costs with Retention Quotas
description: >-
  Learn how to cap the number of retained RUM sessions per day with retention
  quotas.
breadcrumbs: >-
  Docs > RUM & Session Replay > RUM without Limits > Control Costs with
  Retention Quotas
---

# Control Costs with Retention Quotas

{% callout %}
##### Join the Preview

Retention Quotas are in Preview.

[Request Access](https://www.datadoghq.com/product-preview/rum-retention-quotas/)
{% /callout %}

## Overview{% #overview %}

Retention quotas let you cap the number of sessions retained per day across your retention filters.

This gives you tighter cost control and prevents unexpected billing spikes caused by traffic surges or misconfigured filters.

## How quotas work{% #how-quotas-work %}

You define a daily quota as a maximum number of retained sessions. After the quota is reached, you can choose one of two behaviors:

- **Stop retention**: Datadog retains no additional sessions for the rest of the day and drops all incoming sessions until the quota resets.
- **Slow down retention**: Retention continues but at a slower rate. Datadog retains only 10% of sessions that would normally be retained.

## Setup{% #setup %}

To set up a retention quota for an application:

1. In Datadog, navigate to **Digital Experience > Real User Monitoring > Manage Applications**.
1. Select your application.
1. Go to **Product Settings > Retention Filters**.
1. Set a daily quota threshold, a reset time, and a behavior when the quota is reached.

{% image
   source="https://docs.dd-static.net/images/real_user_monitoring/rum_without_limits/retention-quotas-configuration.d6fc549c2ff2ac8aae08615a4be78c0e.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/real_user_monitoring/rum_without_limits/retention-quotas-configuration.d6fc549c2ff2ac8aae08615a4be78c0e.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="The retention quota configuration panel showing the daily quota threshold, reset time, and behavior options." /%}

{% alert level="info" %}
Quotas do not apply to sessions retained by [Permanent Retention Filters](https://docs.datadoghq.com/real_user_monitoring/rum_without_limits/retention_filters.md#permanent-retention-filters).
{% /alert %}

Configuration is done at the application level, which means you can apply different retention strategies per application. Any configuration change (quota limit, retention behavior, reset time) is instantly applied.

## Further reading{% #further-reading %}

- [RUM without Limits](https://docs.datadoghq.com/real_user_monitoring/rum_without_limits.md)
- [Retain Data with Retention Filters](https://docs.datadoghq.com/real_user_monitoring/rum_without_limits/retention_filters.md)
- [Analyze Performance with Metrics](https://docs.datadoghq.com/real_user_monitoring/rum_without_limits/metrics.md)
- [Retention Filter Best Practices](https://docs.datadoghq.com/real_user_monitoring/guide/retention_filter_best_practices.md)
