Skip to content

Commit 925d1e4

Browse files
Add max_memory value to ring buffer target (#33127)
* set max memory to ring buffer target * indentation
1 parent 1fd0ce8 commit 925d1e4

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

content/en/database_monitoring/guide/sql_deadlock.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ Supported Agent versions
4242
ON SERVER
4343
ADD EVENT sqlserver.xml_deadlock_report
4444
ADD TARGET package0.ring_buffer
45+
(
46+
SET MAX_MEMORY = 1024
47+
)
4548
WITH (
4649
MAX_MEMORY = 1024 KB,
4750
EVENT_RETENTION_MODE = ALLOW_SINGLE_EVENT_LOSS,
@@ -74,6 +77,9 @@ Supported Agent versions
7477
ON database
7578
ADD EVENT sqlserver.database_xml_deadlock_report
7679
ADD TARGET package0.ring_buffer
80+
(
81+
SET MAX_MEMORY = 1024
82+
)
7783
WITH (
7884
MAX_MEMORY = 1024 KB,
7985
EVENT_RETENTION_MODE = ALLOW_SINGLE_EVENT_LOSS,

content/en/database_monitoring/guide/sql_extended_events.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ ADD EVENT sqlserver.module_end( -- capture stored procedure completions
106106
)
107107
)
108108
ADD TARGET package0.ring_buffer -- do not change, datadog is only configured to read from ring buffer at this time
109+
(
110+
SET MAX_MEMORY = 1024
111+
)
109112
WITH (
110113
MAX_MEMORY = 1024 KB, -- do not exceed 1024, values above 1 MB may result in data loss due to SQLServer internals
111114
TRACK_CAUSALITY = ON, -- allows datadog to correlate related events across activity ID
@@ -153,6 +156,9 @@ ADD EVENT sqlserver.attention(
153156
)
154157
)
155158
ADD TARGET package0.ring_buffer -- do not change, datadog is only configured to read from ring buffer at this time
159+
(
160+
SET MAX_MEMORY = 1024
161+
)
156162
WITH (
157163
MAX_MEMORY = 1024 KB, -- do not change, setting this larger than 1 MB may result in data loss due to SQLServer internals
158164
EVENT_RETENTION_MODE = ALLOW_SINGLE_EVENT_LOSS,
@@ -252,6 +258,9 @@ ADD EVENT sqlserver.module_end( -- capture stored procedure completions
252258
)
253259
)
254260
ADD TARGET package0.ring_buffer -- do not change, datadog is only configured to read from ring buffer at this time
261+
(
262+
SET MAX_MEMORY = 1024
263+
)
255264
WITH (
256265
MAX_MEMORY = 1024 KB, -- do not exceed 1024, values above 1 MB may result in data loss due to SQLServer internals
257266
TRACK_CAUSALITY = ON, -- allows datadog to correlate related events across activity ID
@@ -299,6 +308,9 @@ ADD EVENT sqlserver.attention(
299308
)
300309
)
301310
ADD TARGET package0.ring_buffer -- do not change, datadog is only configured to read from ring buffer at this time
311+
(
312+
SET MAX_MEMORY = 1024
313+
)
302314
WITH (
303315
MAX_MEMORY = 1024 KB, -- do not change, setting this larger than 1 MB may result in data loss due to SQLServer internals
304316
EVENT_RETENTION_MODE = ALLOW_SINGLE_EVENT_LOSS,

0 commit comments

Comments
 (0)