You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ADD TARGET package0.ring_buffer -- do not change, datadog is only configured to read from ring buffer at this time
291
291
WITH (
292
-
MAX_MEMORY = 2048 KB, -- do not change, setting this larger than 2 MB may result in data loss due to SQLServer internals
292
+
MAX_MEMORY = 1024 KB, -- do not change, setting this larger than 1 MB may result in data loss due to SQLServer internals
293
293
EVENT_RETENTION_MODE = ALLOW_SINGLE_EVENT_LOSS,
294
294
MAX_DISPATCH_LATENCY = 30 SECONDS,
295
295
STARTUP_STATE = ON
@@ -337,10 +337,10 @@ The default query duration threshold is `duration > 1000000` (1 second). Adjust
337
337
<div class="alert alert-warning">Setting thresholds too low can result in excessive event collection that affects server performance, event loss due to buffer overflow, and incomplete data, as Datadog only collects the most recent 1000 events per collection interval.</div>
338
338
339
339
### Memory allocation
340
-
- The default value is `MAX_MEMORY = 2048 KB`.
341
-
- Do not exceed 2048 KB, as higher values may cause data loss due to [SQL Server internal limitations][3].
342
-
- For high-volume servers, keeping this at a maximum of 2048 KB is recommended.
343
-
- For lower-traffic servers, a setting of 1024 KB may be sufficient.
340
+
- The default value is `MAX_MEMORY = 1024 KB`.
341
+
- Do not exceed 1024 KB, as higher values may cause data loss due to [SQL Server internal limitations][3].
342
+
- For high-volume servers, keeping this at a maximum of 1024 KB is recommended.
343
+
- For lower-traffic servers, a setting of 512 KB may be sufficient.
344
344
345
345
### Event filtering {#event-filtering}
346
346
@@ -351,9 +351,8 @@ To reduce event volume, you can add filters to the `WHERE` clause. For example:
351
351
sql_text <> '' AND
352
352
duration > 1000000 AND
353
353
-- Add custom filters here
354
-
database_name = 'YourImportantDB' -- Only track specific databases
355
-
-- OR --
356
-
username <> 'ReportUser' -- Exclude specific users
354
+
database_name = 'YourImportantDB' AND -- Only track specific databases
355
+
username <> 'datadog' -- Exclude Datadog Agent queries or specific users
0 commit comments