80
80
default : false
81
81
- name : database_identifier
82
82
description : |
83
- Controls how the database is identified. The default value is the resolved hostname for the instance,
83
+ Controls how the database is identified. The default value is the resolved hostname for the instance,
84
84
which respects the `reported_hostname` option.
85
85
86
86
This value will be used as-is for the display name of the instance but will be normalized
91
91
value :
92
92
type : string
93
93
display_default : " $resolved_hostname"
94
- example : " $env-$resolved_hostname:$port "
94
+ example : " $env-$resolved_hostname-$full_server_name "
95
95
description : |
96
96
The template to use for the database identifier. The default value is `$resolved_hostname`.
97
97
You can use the following variables, prefixed by `$` in the template:
@@ -103,6 +103,7 @@ files:
103
103
- database: The connection database.
104
104
- server_name: The resolved server name of the instance.
105
105
- instance_name: The resolved instance name of the instance.
106
+ - full_server_name: The resolved full server name of the instance i.e. the value returned by `@@SERVERNAME`.
106
107
In addition, you can use any key from the `tags` section of the configuration.
107
108
default : " $resolved_hostname"
108
109
- name : database_autodiscovery
@@ -173,9 +174,9 @@ files:
173
174
174
175
Set `ao_metrics.enabled` to true to enable collection of AlwaysOn metrics. Defaults to false.
175
176
176
- When `ao_metrics.enabled` is True, use `ao_metrics.availability_group` to specify the
177
- resource group id of a specific availability group that you would like to monitor.
178
- If no availability group is specified, then we will collect AlwaysOn metrics for all
177
+ When `ao_metrics.enabled` is True, use `ao_metrics.availability_group` to specify the
178
+ resource group id of a specific availability group that you would like to monitor.
179
+ If no availability group is specified, then we will collect AlwaysOn metrics for all
179
180
availability groups on the current replica.
180
181
181
182
Primary replicas may emit metrics for remote secondary replicas
@@ -202,7 +203,7 @@ files:
202
203
203
204
Set `db_backup_metrics.enabled` to true to enable collection of database backup metrics. Defaults to true.
204
205
205
- Use `db_backup_metrics.collection_interval` to set the interval (in seconds) for the collection of
206
+ Use `db_backup_metrics.collection_interval` to set the interval (in seconds) for the collection of
206
207
database backup metrics. Defaults to 300 seconds (5 minutes). If you intend on updating this value,
207
208
it is strongly recommended to use a consistent value throughout all SQL Server agent deployments.
208
209
hidden : true
@@ -242,11 +243,11 @@ files:
242
243
example : true
243
244
- name : db_fragmentation_metrics
244
245
description : |
245
- Configure collection of database fragmentation metrics.
246
- Note these queries can be resource intensive on large datasets. Recommend to limit these via
246
+ Configure collection of database fragmentation metrics.
247
+ Note these queries can be resource intensive on large datasets. Recommend to limit these via
247
248
autodiscovery or specific database instances.
248
249
249
- Set `db_fragmentation_metrics.enabled` to true to enable collection of
250
+ Set `db_fragmentation_metrics.enabled` to true to enable collection of
250
251
database index fragmentation statistics. Defaults to false.
251
252
252
253
Use `db_fragmentation_metrics.enabled_tempdb` to enable collection of database index fragmentation statistics
@@ -343,7 +344,7 @@ files:
343
344
type : boolean
344
345
example : true
345
346
- name : master_files_metrics
346
- description : |
347
+ description : |
347
348
Configure collection of database file size and state from `sys.master_files`
348
349
349
350
Set `master_files_metrics.enabled` to true to enable collection of database file size and state metrics.
@@ -356,7 +357,7 @@ files:
356
357
example : false
357
358
- name : primary_log_shipping_metrics
358
359
description : |
359
- Configure collection of metrics for a log shipping setup. Required to run against the
360
+ Configure collection of metrics for a log shipping setup. Required to run against the
360
361
primary instance in a transaction log shipping configuration. Note that
361
362
the Datadog user needs to be present in msdb and must be added to the db_datareader role.
362
363
@@ -370,7 +371,7 @@ files:
370
371
example : false
371
372
- name : secondary_log_shipping_metrics
372
373
description : |
373
- Configure collection of metrics for a log shipping setup. Required to run against the
374
+ Configure collection of metrics for a log shipping setup. Required to run against the
374
375
secondary instance in a transaction log shipping configuration. Note that
375
376
the Datadog user needs to be present in msdb and must be added to the db_datareader role.
376
377
@@ -410,7 +411,7 @@ files:
410
411
description : |
411
412
Configure collection of tempdb file space usage metrics for how space is used in tempdb data files.
412
413
413
- Set `tempdb_file_space_usage_metrics.enabled` to true to enable collection of
414
+ Set `tempdb_file_space_usage_metrics.enabled` to true to enable collection of
414
415
tempdb file space usage metrics. Defaults to true.
415
416
value :
416
417
type : object
@@ -420,7 +421,7 @@ files:
420
421
example : true
421
422
- name : xe_metrics
422
423
description : |
423
- Configure collection of extended events (XE) metrics.
424
+ Configure collection of extended events (XE) metrics.
424
425
425
426
Set `xe_metrics.enabled` to true to enable collection of extended events metrics. Defaults to false.
426
427
value :
@@ -889,12 +890,12 @@ files:
889
890
- name : collect_raw_query_statement
890
891
description : |
891
892
Configure the collection of raw query statements in query activity, execution plans, and XE events.
892
- To collect raw query statements from XE events, set `xe_collection.query_completions.enabled` and
893
+ To collect raw query statements from XE events, set `xe_collection.query_completions.enabled` and
893
894
`xe_collection.query_errors.enabled` to `true`.
894
895
Raw query statements and execution plans may contain sensitive information (e.g., passwords)
895
896
or personally identifiable information in query text.
896
- Enabling this option will allow the collection and ingestion of raw query statements and
897
- execution plans into Datadog, which can then become viewable in query samples or explain plans.
897
+ Enabling this option will allow the collection and ingestion of raw query statements and
898
+ execution plans into Datadog, which can then become viewable in query samples or explain plans.
898
899
This option is disabled by default.
899
900
Note: Collection of raw query statements is currently in preview.
900
901
If you are interested in participating, please reach out to your Datadog Customer Success Manager.
@@ -1022,13 +1023,13 @@ files:
1022
1023
Configure the collection of completed queries from the `datadog_query_completions` XE session.
1023
1024
1024
1025
Set `query_completions.enabled` to `true` to enable the collection of query completion events.
1025
-
1026
- Use `query_completions.collection_interval` to set the interval (in seconds) for the collection of
1026
+
1027
+ Use `query_completions.collection_interval` to set the interval (in seconds) for the collection of
1027
1028
query completion events. Defaults to 10 seconds. If you intend on updating this value,
1028
1029
it is strongly recommended to use a consistent value throughout all SQL Server agent deployments.
1029
-
1030
- Use `query_completions.max_events` to set the maximum number of query completion events to process
1031
- per collection. Note that SQL Server's ring buffer has a maximum of 1000 events per query,
1030
+
1031
+ Use `query_completions.max_events` to set the maximum number of query completion events to process
1032
+ per collection. Note that SQL Server's ring buffer has a maximum of 1000 events per query,
1032
1033
so values above 1000 will still be capped at 1000 by the database engine. Defaults to 1000.
1033
1034
value :
1034
1035
type : object
@@ -1049,13 +1050,13 @@ files:
1049
1050
Configure the collection of query errors from the `datadog_query_errors` XE session.
1050
1051
1051
1052
Set `query_errors.enabled` to `true` to enable the collection of query error events.
1052
-
1053
- Use `query_errors.collection_interval` to set the interval (in seconds) for the collection of
1053
+
1054
+ Use `query_errors.collection_interval` to set the interval (in seconds) for the collection of
1054
1055
query error events. Defaults to 10 seconds. If you intend on updating this value,
1055
1056
it is strongly recommended to use a consistent value throughout all SQL Server agent deployments.
1056
-
1057
- Use `query_errors.max_events` to set the maximum number of query error events to process
1058
- per collection. Note that SQL Server's ring buffer has a maximum of 1000 events per query,
1057
+
1058
+ Use `query_errors.max_events` to set the maximum number of query error events to process
1059
+ per collection. Note that SQL Server's ring buffer has a maximum of 1000 events per query,
1059
1060
so values above 1000 will still be capped at 1000 by the database engine. Defaults to 1000.
1060
1061
value :
1061
1062
type : object
0 commit comments