Skip to content

Commit b2401a9

Browse files
committed
discovery: add sd-agent support
1 parent 6fb0dc7 commit b2401a9

14 files changed

Lines changed: 158 additions & 7 deletions

api/datadoghq/v2alpha1/datadogagent_types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,13 @@ type ServiceDiscoveryFeatureConfig struct {
626626
// Default: true
627627
// +optional
628628
NetworkStats *ServiceDiscoveryNetworkStatsConfig `json:"networkStats,omitempty"`
629+
630+
// UseSdAgent enables the sd-agent wrapper for system-probe when running service discovery.
631+
// When enabled, the system-probe container uses sd-agent as a lightweight wrapper,
632+
// falling back to plain system-probe if the binary is not available.
633+
// Default: false
634+
// +optional
635+
UseSdAgent *bool `json:"useSdAgent,omitempty"`
629636
}
630637

631638
// ServiceDiscoveryNetworkStatsConfig configures Service Discovery's network stats

api/datadoghq/v2alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/datadoghq/v2alpha1/zz_generated.openapi.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/v1/datadoghq.com_datadogagentinternals.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.17.3
6+
controller-gen.kubebuilder.io/version: v0.16.3
77
name: datadogagentinternals.datadoghq.com
88
spec:
99
group: datadoghq.com
@@ -2368,6 +2368,13 @@ spec:
23682368
Default: true
23692369
type: boolean
23702370
type: object
2371+
useSdAgent:
2372+
description: |-
2373+
UseSdAgent enables the sd-agent wrapper for system-probe when running service discovery.
2374+
When enabled, the system-probe container uses sd-agent as a lightweight wrapper,
2375+
falling back to plain system-probe if the binary is not available.
2376+
Default: false
2377+
type: boolean
23712378
type: object
23722379
tcpQueueLength:
23732380
description: TCPQueueLength configuration.
@@ -10373,6 +10380,13 @@ spec:
1037310380
Default: true
1037410381
type: boolean
1037510382
type: object
10383+
useSdAgent:
10384+
description: |-
10385+
UseSdAgent enables the sd-agent wrapper for system-probe when running service discovery.
10386+
When enabled, the system-probe container uses sd-agent as a lightweight wrapper,
10387+
falling back to plain system-probe if the binary is not available.
10388+
Default: false
10389+
type: boolean
1037610390
type: object
1037710391
tcpQueueLength:
1037810392
description: TCPQueueLength configuration.

config/crd/bases/v1/datadoghq.com_datadogagentinternals_v1alpha1.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2485,6 +2485,10 @@
24852485
}
24862486
},
24872487
"type": "object"
2488+
},
2489+
"useSdAgent": {
2490+
"description": "UseSdAgent enables the sd-agent wrapper for system-probe when running service discovery.\nWhen enabled, the system-probe container uses sd-agent as a lightweight wrapper,\nfalling back to plain system-probe if the binary is not available.\nDefault: false",
2491+
"type": "boolean"
24882492
}
24892493
},
24902494
"type": "object"
@@ -10348,6 +10352,10 @@
1034810352
}
1034910353
},
1035010354
"type": "object"
10355+
},
10356+
"useSdAgent": {
10357+
"description": "UseSdAgent enables the sd-agent wrapper for system-probe when running service discovery.\nWhen enabled, the system-probe container uses sd-agent as a lightweight wrapper,\nfalling back to plain system-probe if the binary is not available.\nDefault: false",
10358+
"type": "boolean"
1035110359
}
1035210360
},
1035310361
"type": "object"

config/crd/bases/v1/datadoghq.com_datadogagentprofiles.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.17.3
6+
controller-gen.kubebuilder.io/version: v0.16.3
77
name: datadogagentprofiles.datadoghq.com
88
spec:
99
group: datadoghq.com
@@ -2368,6 +2368,13 @@ spec:
23682368
Default: true
23692369
type: boolean
23702370
type: object
2371+
useSdAgent:
2372+
description: |-
2373+
UseSdAgent enables the sd-agent wrapper for system-probe when running service discovery.
2374+
When enabled, the system-probe container uses sd-agent as a lightweight wrapper,
2375+
falling back to plain system-probe if the binary is not available.
2376+
Default: false
2377+
type: boolean
23712378
type: object
23722379
tcpQueueLength:
23732380
description: TCPQueueLength configuration.

config/crd/bases/v1/datadoghq.com_datadogagentprofiles_v1alpha1.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2489,6 +2489,10 @@
24892489
}
24902490
},
24912491
"type": "object"
2492+
},
2493+
"useSdAgent": {
2494+
"description": "UseSdAgent enables the sd-agent wrapper for system-probe when running service discovery.\nWhen enabled, the system-probe container uses sd-agent as a lightweight wrapper,\nfalling back to plain system-probe if the binary is not available.\nDefault: false",
2495+
"type": "boolean"
24922496
}
24932497
},
24942498
"type": "object"

config/crd/bases/v1/datadoghq.com_datadogagents.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.17.3
6+
controller-gen.kubebuilder.io/version: v0.16.3
77
name: datadogagents.datadoghq.com
88
spec:
99
group: datadoghq.com
@@ -2368,6 +2368,13 @@ spec:
23682368
Default: true
23692369
type: boolean
23702370
type: object
2371+
useSdAgent:
2372+
description: |-
2373+
UseSdAgent enables the sd-agent wrapper for system-probe when running service discovery.
2374+
When enabled, the system-probe container uses sd-agent as a lightweight wrapper,
2375+
falling back to plain system-probe if the binary is not available.
2376+
Default: false
2377+
type: boolean
23712378
type: object
23722379
tcpQueueLength:
23732380
description: TCPQueueLength configuration.
@@ -10423,6 +10430,13 @@ spec:
1042310430
Default: true
1042410431
type: boolean
1042510432
type: object
10433+
useSdAgent:
10434+
description: |-
10435+
UseSdAgent enables the sd-agent wrapper for system-probe when running service discovery.
10436+
When enabled, the system-probe container uses sd-agent as a lightweight wrapper,
10437+
falling back to plain system-probe if the binary is not available.
10438+
Default: false
10439+
type: boolean
1042610440
type: object
1042710441
tcpQueueLength:
1042810442
description: TCPQueueLength configuration.

config/crd/bases/v1/datadoghq.com_datadogagents_v2alpha1.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2485,6 +2485,10 @@
24852485
}
24862486
},
24872487
"type": "object"
2488+
},
2489+
"useSdAgent": {
2490+
"description": "UseSdAgent enables the sd-agent wrapper for system-probe when running service discovery.\nWhen enabled, the system-probe container uses sd-agent as a lightweight wrapper,\nfalling back to plain system-probe if the binary is not available.\nDefault: false",
2491+
"type": "boolean"
24882492
}
24892493
},
24902494
"type": "object"
@@ -10413,6 +10417,10 @@
1041310417
}
1041410418
},
1041510419
"type": "object"
10420+
},
10421+
"useSdAgent": {
10422+
"description": "UseSdAgent enables the sd-agent wrapper for system-probe when running service discovery.\nWhen enabled, the system-probe container uses sd-agent as a lightweight wrapper,\nfalling back to plain system-probe if the binary is not available.\nDefault: false",
10423+
"type": "boolean"
1041610424
}
1041710425
},
1041810426
"type": "object"

docs/configuration.v2alpha1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ spec:
195195
| features.sbom.host.enabled | Enable this option to activate SBOM collection. Default: false |
196196
| features.serviceDiscovery.enabled | Enables the service discovery check. Default: false |
197197
| features.serviceDiscovery.networkStats.enabled | Enables the Service Discovery Network Stats feature. Default: true |
198+
| features.serviceDiscovery.useSdAgent | UseSdAgent enables the sd-agent wrapper for system-probe when running service discovery. When enabled, the system-probe container uses sd-agent as a lightweight wrapper, falling back to plain system-probe if the binary is not available. Default: false |
198199
| features.tcpQueueLength.enabled | Enables the TCP queue length eBPF-based check. Default: false |
199200
| features.usm.enabled | Enables Universal Service Monitoring. Default: false |
200201
| global.checksTagCardinality | ChecksTagCardinality configures tag cardinality for the metrics collected by integrations (`low`, `orchestrator` or `high`). See also: https://docs.datadoghq.com/getting_started/tagging/assigning_tags/?tab=containerizedenvironments#tags-cardinality. Not set by default to avoid overriding existing DD_CHECKS_TAG_CARDINALITY configurations, the default value in the Agent is low. Ref: https://github.com/DataDog/datadog-agent/blob/856cf4a66142ce91fd4f8a278149436eb971184a/pkg/config/setup/config.go#L625. |

0 commit comments

Comments
 (0)