Skip to content

Commit 8daa9fb

Browse files
[mq] working branch - merge 97f2b64 on top of master at b927965
{"baseBranch":"master","baseCommit":"b92796539ae5575ef0d7ae7b9ba4c69e30708e47","createdAt":"2025-05-19T16:50:41.419794Z","headSha":"97f2b64bef51716a8dec98263b76e70a438184b9","id":"56dad24d-402d-424e-87ce-601da26f2c07","priority":"200","pullRequestNumber":"29216","queuedAt":"2025-05-19T16:50:41.419323Z","retryAttempt":"1","status":"STATUS_QUEUED"}
2 parents 3a17838 + 97f2b64 commit 8daa9fb

8 files changed

+611
-130
lines changed

content/en/database_monitoring/setup_sql_server/azure.md

Lines changed: 84 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,23 @@ When configuring the Datadog Agent, specify one check instance for each applicat
6464
```yaml
6565
init_config:
6666
instances:
67-
- host: '<SERVER_NAME>.database.windows.net,1433'
67+
- host: '<SERVER_NAME>.database.windows.net,<PORT>'
6868
database: '<DATABASE_1>'
6969
username: datadog
7070
password: '<PASSWORD>'
71+
connector: 'odbc'
72+
driver: 'ODBC Driver 18 for SQL Server'
7173
# After adding your project and instance, configure the Datadog Azure integration to pull additional cloud data such as CPU, Memory, etc.
7274
azure:
7375
deployment_type: 'sql_database'
7476
fully_qualified_domain_name: '<SERVER_NAME>.database.windows.net'
7577

76-
- host: '<SERVER_NAME>.database.windows.net,1433'
78+
- host: '<SERVER_NAME>.database.windows.net,<PORT>'
7779
database: '<DATABASE_2>'
7880
username: datadog
7981
password: '<PASSWORD>'
82+
connector: 'odbc'
83+
driver: 'ODBC Driver 18 for SQL Server'
8084
# After adding your project and instance, configure the Datadog Azure integration to pull additional cloud data such as CPU, Memory, etc.
8185
azure:
8286
deployment_type: 'sql_database'
@@ -142,7 +146,7 @@ Create the SQL Server Agent conf file `C:\ProgramData\Datadog\conf.d\sqlserver.d
142146
init_config:
143147
instances:
144148
- dbm: true
145-
host: '<HOSTNAME>,<SQL_PORT>'
149+
host: '<HOSTNAME>,<PORT>'
146150
username: datadog
147151
password: 'ENC[datadog_user_database_password]'
148152
connector: adodbapi
@@ -180,7 +184,7 @@ The recommended ODBC driver is [Microsoft ODBC Driver][8]. Starting with Agent 7
180184

181185
```yaml
182186
connector: odbc
183-
driver: '{ODBC Driver 18 for SQL Server}'
187+
driver: 'ODBC Driver 18 for SQL Server'
184188
```
185189

186190
Once all Agent configuration is complete, [restart the Datadog Agent][9].
@@ -215,7 +219,7 @@ Create the SQL Server Agent conf file `/etc/datadog-agent/conf.d/sqlserver.d/con
215219
init_config:
216220
instances:
217221
- dbm: true
218-
host: '<HOSTNAME>,<SQL_PORT>'
222+
host: '<HOSTNAME>,<PORT>'
219223
username: datadog
220224
password: 'ENC[datadog_user_database_password]'
221225
connector: odbc
@@ -258,15 +262,15 @@ Replace the values to match your account and environment. See the [sample conf f
258262

259263
```bash
260264
export DD_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
261-
export DD_AGENT_VERSION=7.51.0
265+
export DD_AGENT_VERSION=<AGENT_VERSION>
262266
263267
docker run -e "DD_API_KEY=${DD_API_KEY}" \
264268
-v /var/run/docker.sock:/var/run/docker.sock:ro \
265269
-l com.datadoghq.ad.check_names='["sqlserver"]' \
266270
-l com.datadoghq.ad.init_configs='[{}]' \
267271
-l com.datadoghq.ad.instances='[{
268272
"dbm": true,
269-
"host": "<HOSTNAME>,<SQL_PORT>",
273+
"host": "<HOSTNAME>,<PORT>",
270274
"connector": "odbc",
271275
"driver": "ODBC Driver 18 for SQL Server",
272276
"username": "datadog",
@@ -300,9 +304,66 @@ Use the `service` and `env` tags to link your database telemetry to other teleme
300304
[6]: https://app.datadoghq.com/databases
301305
{{% /tab %}}
302306
{{% tab "Kubernetes" %}}
303-
If you have a Kubernetes cluster, use the [Datadog Cluster Agent][1] for Database Monitoring.
307+
If you're running a Kubernetes cluster, use the [Datadog Cluster Agent][1] to enable Database Monitoring. If cluster checks aren’t already enabled, [follow these instructions][2] to enable them before proceeding.
304308

305-
If cluster checks are not already enabled in your Kubernetes cluster, follow the instructions to [enable cluster checks][2]. You can configure the Cluster Agent either with static files mounted in the Cluster Agent container, or by using Kubernetes service annotations:
309+
### Operator
310+
311+
Follow the steps below to set up the SQL Server integration, using the [Operator instructions in Kubernetes and Integrations][6] as a reference.
312+
313+
1. Create or update the `datadog-agent.yaml` file with the following configuration:
314+
315+
```yaml
316+
apiVersion: datadoghq.com/v2alpha1
317+
kind: DatadogAgent
318+
metadata:
319+
name: datadog
320+
spec:
321+
global:
322+
clusterName: <CLUSTER_NAME>
323+
site: <DD_SITE>
324+
credentials:
325+
apiSecret:
326+
secretName: datadog-agent-secret
327+
keyName: api-key
328+
329+
features:
330+
clusterChecks:
331+
enabled: true
332+
333+
override:
334+
nodeAgent:
335+
image:
336+
name: agent
337+
tag: <AGENT_VERSION>
338+
339+
clusterAgent:
340+
extraConfd:
341+
configDataMap:
342+
sqlserver.yaml: |-
343+
cluster_check: true # Make sure to include this flag
344+
init_config:
345+
instances:
346+
- host: <HOSTNAME>,<PORT>
347+
username: datadog
348+
password: 'ENC[datadog_user_database_password]'
349+
connector: 'odbc'
350+
driver: 'ODBC Driver 18 for SQL Server'
351+
dbm: true
352+
# Optional: For additional tags
353+
tags:
354+
- 'service:<CUSTOM_SERVICE>'
355+
- 'env:<CUSTOM_ENV>'
356+
# After adding your project and instance, configure the Datadog Azure integration to pull additional cloud data such as CPU, Memory, etc.
357+
azure:
358+
deployment_type: '<DEPLOYMENT_TYPE>'
359+
fully_qualified_domain_name: '<AZURE_ENDPOINT_ADDRESS>'
360+
```
361+
362+
2. Apply the changes to the Datadog Operator using the following command:
363+
364+
```shell
365+
kubectl apply -f datadog-agent.yaml
366+
```
306367

307368
### Helm
308369

@@ -314,19 +375,20 @@ Complete the following steps to install the [Datadog Cluster Agent][1] on your K
314375
clusterAgent:
315376
confd:
316377
sqlserver.yaml: |-
317-
cluster_check: true
378+
cluster_check: true # Required for cluster checks
318379
init_config:
319380
instances:
320381
- dbm: true
321-
host: <HOSTNAME>,1433
382+
host: <HOSTNAME>,<PORT>
322383
username: datadog
323384
password: 'ENC[datadog_user_database_password]'
324385
connector: 'odbc'
325-
driver: '{ODBC Driver 18 for SQL Server}'
326-
include_ao_metrics: true # Optional: For AlwaysOn users
327-
tags: # Optional
386+
driver: 'ODBC Driver 18 for SQL Server'
387+
# Optional: For additional tags
388+
tags:
328389
- 'service:<CUSTOM_SERVICE>'
329390
- 'env:<CUSTOM_ENV>'
391+
# After adding your project and instance, configure the Datadog Azure integration to pull additional cloud data such as CPU, Memory, etc.
330392
azure:
331393
deployment_type: '<DEPLOYMENT_TYPE>'
332394
fully_qualified_domain_name: '<AZURE_ENDPOINT_ADDRESS>'
@@ -353,12 +415,13 @@ cluster_check: true # Make sure to include this flag
353415
init_config:
354416
instances:
355417
- dbm: true
356-
host: '<HOSTNAME>,<SQL_PORT>'
418+
host: <HOSTNAME>,<PORT>
357419
username: datadog
358420
password: 'ENC[datadog_user_database_password]'
359-
connector: "odbc"
360-
driver: '{ODBC Driver 18 for SQL Server}'
361-
tags: # Optional
421+
connector: 'odbc'
422+
driver: 'ODBC Driver 18 for SQL Server'
423+
# Optional: For additional tags
424+
tags:
362425
- 'service:<CUSTOM_SERVICE>'
363426
- 'env:<CUSTOM_ENV>'
364427
# After adding your project and instance, configure the Datadog Azure integration to pull additional cloud data such as CPU, Memory, etc.
@@ -371,7 +434,6 @@ instances:
371434

372435
Rather than mounting a file, you can declare the instance configuration as a Kubernetes Service. To configure this check for an Agent running on Kubernetes, create a Service in the same namespace as the Datadog Cluster Agent:
373436

374-
375437
```yaml
376438
apiVersion: v1
377439
kind: Service
@@ -384,12 +446,12 @@ metadata:
384446
[
385447
{
386448
"dbm": true,
387-
"host": "<HOSTNAME>,<SQL_PORT>",
449+
"host": "<HOSTNAME>,<PORT>",
388450
"username": "datadog",
389451
"password": "ENC[datadog_user_database_password]",
390452
"connector": "odbc",
391453
"driver": "ODBC Driver 18 for SQL Server",
392-
"tags": ["service:<CUSTOM_SERVICE>", "env:<CUSTOM_ENV>"], # Optional
454+
"tags": ["service:<CUSTOM_SERVICE>", "env:<CUSTOM_ENV>"],
393455
"azure": {
394456
"deployment_type": "<DEPLOYMENT_TYPE>",
395457
"fully_qualified_domain_name": "<AZURE_ENDPOINT_ADDRESS>"
@@ -416,6 +478,7 @@ To avoid exposing the `datadog` user's password in plain text, use the Agent's [
416478
[3]: /containers/kubernetes/installation/?tab=helm#installation
417479
[4]: https://github.com/DataDog/integrations-core/blob/master/sqlserver/assets/configuration/spec.yaml#L353-L383
418480
[5]: /agent/configuration/secrets-management
481+
[6]: /containers/kubernetes/integrations/?tab=datadogoperator
419482
{{% /tab %}}
420483
{{< /tabs >}}
421484

content/en/database_monitoring/setup_sql_server/gcsql.md

Lines changed: 77 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Create the SQL Server Agent conf file `C:\ProgramData\Datadog\conf.d\sqlserver.d
6161
init_config:
6262
instances:
6363
- dbm: true
64-
host: '<HOSTNAME>,<SQL_PORT>'
64+
host: '<HOSTNAME>,<PORT>'
6565
username: datadog
6666
password: '<PASSWORD>'
6767
connector: adodbapi
@@ -102,7 +102,7 @@ The recommended ODBC driver is [Microsoft ODBC Driver][8]. Starting with Agent 7
102102

103103
```yaml
104104
connector: odbc
105-
driver: '{ODBC Driver 18 for SQL Server}'
105+
driver: 'ODBC Driver 18 for SQL Server'
106106
```
107107

108108
Once all Agent configuration is complete, [restart the Datadog Agent][9].
@@ -137,7 +137,7 @@ Create the SQL Server Agent conf file `/etc/datadog-agent/conf.d/sqlserver.d/con
137137
init_config:
138138
instances:
139139
- dbm: true
140-
host: '<HOSTNAME>,<SQL_PORT>'
140+
host: '<HOSTNAME>,<PORT>'
141141
username: datadog
142142
password: 'ENC[datadog_user_database_password]'
143143
connector: odbc
@@ -180,7 +180,7 @@ Replace the values to match your account and environment. See the [sample conf f
180180

181181
```bash
182182
export DD_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
183-
export DD_AGENT_VERSION=7.51.0
183+
export DD_AGENT_VERSION=<AGENT_VERSION>
184184
185185
docker run -e "DD_API_KEY=${DD_API_KEY}" \
186186
-v /var/run/docker.sock:/var/run/docker.sock:ro \
@@ -222,9 +222,66 @@ Use the `service` and `env` tags to link your database telemetry to other teleme
222222
[6]: https://app.datadoghq.com/databases
223223
{{% /tab %}}
224224
{{% tab "Kubernetes" %}}
225-
If you have a Kubernetes cluster, use the [Datadog Cluster Agent][1] for Database Monitoring.
225+
If you're using a Kubernetes cluster, use the [Datadog Cluster Agent][1] for Database Monitoring. If cluster checks aren’t already enabled, [follow these instructions][2] to enable them before proceeding..
226226

227-
If cluster checks are not already enabled in your Kubernetes cluster, follow the instructions to [enable cluster checks][2]. You can configure the Cluster Agent either with static files mounted in the Cluster Agent container, or by using Kubernetes service annotations:
227+
### Operator
228+
229+
Follow the steps below to set up the SQL Server integration, using the [Operator instructions in Kubernetes and Integrations][6] as a reference.
230+
231+
1. Create or update the `datadog-agent.yaml` file with the following configuration:
232+
233+
```yaml
234+
apiVersion: datadoghq.com/v2alpha1
235+
kind: DatadogAgent
236+
metadata:
237+
name: datadog
238+
spec:
239+
global:
240+
clusterName: <CLUSTER_NAME>
241+
site: <DD_SITE>
242+
credentials:
243+
apiSecret:
244+
secretName: datadog-agent-secret
245+
keyName: api-key
246+
247+
features:
248+
clusterChecks:
249+
enabled: true
250+
251+
override:
252+
nodeAgent:
253+
image:
254+
name: agent
255+
tag: <AGENT_VERSION>
256+
257+
clusterAgent:
258+
extraConfd:
259+
configDataMap:
260+
sqlserver.yaml: |-
261+
cluster_check: true # Required for cluster checks
262+
init_config:
263+
instances:
264+
- host: <HOSTNAME>,<PORT>
265+
username: datadog
266+
password: 'ENC[datadog_user_database_password]'
267+
connector: 'odbc'
268+
driver: 'ODBC Driver 18 for SQL Server'
269+
dbm: true
270+
# Optional: For additional tags
271+
tags:
272+
- 'service:<CUSTOM_SERVICE>'
273+
- 'env:<CUSTOM_ENV>'
274+
# After adding your project and instance, configure the Datadog Google Cloud (GCP) integration to pull additional cloud data such as CPU, Memory, etc.
275+
gcp:
276+
project_id: '<PROJECT_ID>'
277+
instance_id: '<INSTANCE_ID>'
278+
```
279+
280+
2. Apply the changes to the Datadog Operator using the following command:
281+
282+
```shell
283+
kubectl apply -f datadog-agent.yaml
284+
```
228285

229286
### Helm
230287

@@ -240,15 +297,16 @@ Complete the following steps to install the [Datadog Cluster Agent][1] on your K
240297
init_config:
241298
instances:
242299
- dbm: true
243-
host: <HOSTNAME>
244-
port: 1433
300+
host: <HOSTNAME>,<PORT>
245301
username: datadog
246302
password: 'ENC[datadog_user_database_password]'
247303
connector: 'odbc'
248-
driver: '{ODBC Driver 18 for SQL Server}'
249-
tags: # Optional
304+
driver: 'ODBC Driver 18 for SQL Server'
305+
# Optional: For additional tags
306+
tags:
250307
- 'service:<CUSTOM_SERVICE>'
251308
- 'env:<CUSTOM_ENV>'
309+
# After adding your project and instance, configure the Datadog Google Cloud (GCP) integration to pull additional cloud data such as CPU, Memory, etc.
252310
gcp:
253311
project_id: '<PROJECT_ID>'
254312
instance_id: '<INSTANCE_ID>'
@@ -266,10 +324,6 @@ Complete the following steps to install the [Datadog Cluster Agent][1] on your K
266324
For Windows, append <code>--set targetSystem=windows</code> to the <code>helm install</code> command.
267325
</div>
268326

269-
[1]: https://app.datadoghq.com/organization-settings/api-keys
270-
[2]: /getting_started/site
271-
[3]: /containers/kubernetes/installation/?tab=helm#installation
272-
273327
### Configure with mounted files
274328

275329
To configure a cluster check with a mounted configuration file, mount the configuration file in the Cluster Agent container on the path: `/conf.d/sqlserver.yaml`:
@@ -279,13 +333,13 @@ cluster_check: true # Make sure to include this flag
279333
init_config:
280334
instances:
281335
- dbm: true
282-
host: '<HOSTNAME>'
283-
port: <SQL_PORT>
336+
host: <HOSTNAME>,<PORT>
284337
username: datadog
285338
password: 'ENC[datadog_user_database_password]'
286-
connector: "odbc"
287-
driver: '{ODBC Driver 18 for SQL Server}'
288-
tags: # Optional
339+
connector: 'odbc'
340+
driver: 'ODBC Driver 18 for SQL Server'
341+
# Optional: For additional tags
342+
tags:
289343
- 'service:<CUSTOM_SERVICE>'
290344
- 'env:<CUSTOM_ENV>'
291345
# After adding your project and instance, configure the Datadog Google Cloud (GCP) integration to pull additional cloud data such as CPU, Memory, etc.
@@ -311,13 +365,12 @@ metadata:
311365
[
312366
{
313367
"dbm": true,
314-
"host": "<HOSTNAME>",
315-
"port": <SQL_PORT>,
368+
"host": "<HOSTNAME>,<PORT>",
316369
"username": "datadog",
317370
"password": "ENC[datadog_user_database_password]",
318371
"connector": "odbc",
319372
"driver": "ODBC Driver 18 for SQL Server",
320-
"tags": ["service:<CUSTOM_SERVICE>", "env:<CUSTOM_ENV>"], # Optional
373+
"tags": ["service:<CUSTOM_SERVICE>", "env:<CUSTOM_ENV>"],
321374
"gcp": {
322375
"project_id": "<PROJECT_ID>",
323376
"instance_id": "<INSTANCE_ID>"
@@ -340,9 +393,10 @@ To avoid exposing the `datadog` user's password in plain text, use the Agent's [
340393

341394
[1]: /agent/cluster_agent
342395
[2]: /agent/cluster_agent/clusterchecks/
343-
[3]: https://helm.sh
396+
[3]: /containers/kubernetes/installation/?tab=helm#installation
344397
[4]: https://github.com/DataDog/integrations-core/blob/master/sqlserver/assets/configuration/spec.yaml#L324-L351
345398
[5]: /agent/configuration/secrets-management
399+
[6]: /containers/kubernetes/integrations/?tab=datadogoperator
346400
{{% /tab %}}
347401
{{< /tabs >}}
348402

0 commit comments

Comments
 (0)