Skip to content

Commit 5155320

Browse files
committed
discovery: add system-probe-lite support
1 parent ae90bec commit 5155320

15 files changed

Lines changed: 391 additions & 35 deletions

api/datadoghq/v2alpha1/datadogagent_types.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,14 @@ type ServiceDiscoveryFeatureConfig struct {
647647
// +optional
648648
Enabled *bool `json:"enabled,omitempty"`
649649

650+
// EnabledByDefault is set by the operator when it enables this feature via default configuration,
651+
// as opposed to an explicit user choice. When true, the system-probe binary is not used as a
652+
// fallback if system-probe-lite is unavailable — the container falls back to sleep infinity
653+
// instead, to avoid unexpected resource usage on older agent images.
654+
// This field is managed by the operator and should not be set by users.
655+
// +optional
656+
EnabledByDefault *bool `json:"enabledByDefault,omitempty"`
657+
650658
// Enables the service discovery network stats collection.
651659
// Default: true
652660
// +optional

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.

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2488,6 +2488,14 @@ spec:
24882488
Enables the service discovery check.
24892489
Default: false
24902490
type: boolean
2491+
enabledByDefault:
2492+
description: |-
2493+
EnabledByDefault is set by the operator when it enables this feature via default configuration,
2494+
as opposed to an explicit user choice. When true, the system-probe binary is not used as a
2495+
fallback if system-probe-lite is unavailable — the container falls back to sleep infinity
2496+
instead, to avoid unexpected resource usage on older agent images.
2497+
This field is managed by the operator and should not be set by users.
2498+
type: boolean
24912499
networkStats:
24922500
description: |-
24932501
Enables the service discovery network stats collection.
@@ -10909,6 +10917,14 @@ spec:
1090910917
Enables the service discovery check.
1091010918
Default: false
1091110919
type: boolean
10920+
enabledByDefault:
10921+
description: |-
10922+
EnabledByDefault is set by the operator when it enables this feature via default configuration,
10923+
as opposed to an explicit user choice. When true, the system-probe binary is not used as a
10924+
fallback if system-probe-lite is unavailable — the container falls back to sleep infinity
10925+
instead, to avoid unexpected resource usage on older agent images.
10926+
This field is managed by the operator and should not be set by users.
10927+
type: boolean
1091210928
networkStats:
1091310929
description: |-
1091410930
Enables the service discovery network stats collection.

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2588,6 +2588,10 @@
25882588
"description": "Enables the service discovery check.\nDefault: false",
25892589
"type": "boolean"
25902590
},
2591+
"enabledByDefault": {
2592+
"description": "EnabledByDefault is set by the operator when it enables this feature via default configuration,\nas opposed to an explicit user choice. When true, the system-probe binary is not used as a\nfallback if system-probe-lite is unavailable — the container falls back to sleep infinity\ninstead, to avoid unexpected resource usage on older agent images.\nThis field is managed by the operator and should not be set by users.",
2593+
"type": "boolean"
2594+
},
25912595
"networkStats": {
25922596
"additionalProperties": false,
25932597
"description": "Enables the service discovery network stats collection.\nDefault: true",
@@ -10742,6 +10746,10 @@
1074210746
"description": "Enables the service discovery check.\nDefault: false",
1074310747
"type": "boolean"
1074410748
},
10749+
"enabledByDefault": {
10750+
"description": "EnabledByDefault is set by the operator when it enables this feature via default configuration,\nas opposed to an explicit user choice. When true, the system-probe binary is not used as a\nfallback if system-probe-lite is unavailable — the container falls back to sleep infinity\ninstead, to avoid unexpected resource usage on older agent images.\nThis field is managed by the operator and should not be set by users.",
10751+
"type": "boolean"
10752+
},
1074510753
"networkStats": {
1074610754
"additionalProperties": false,
1074710755
"description": "Enables the service discovery network stats collection.\nDefault: true",

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2488,6 +2488,14 @@ spec:
24882488
Enables the service discovery check.
24892489
Default: false
24902490
type: boolean
2491+
enabledByDefault:
2492+
description: |-
2493+
EnabledByDefault is set by the operator when it enables this feature via default configuration,
2494+
as opposed to an explicit user choice. When true, the system-probe binary is not used as a
2495+
fallback if system-probe-lite is unavailable — the container falls back to sleep infinity
2496+
instead, to avoid unexpected resource usage on older agent images.
2497+
This field is managed by the operator and should not be set by users.
2498+
type: boolean
24912499
networkStats:
24922500
description: |-
24932501
Enables the service discovery network stats collection.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2592,6 +2592,10 @@
25922592
"description": "Enables the service discovery check.\nDefault: false",
25932593
"type": "boolean"
25942594
},
2595+
"enabledByDefault": {
2596+
"description": "EnabledByDefault is set by the operator when it enables this feature via default configuration,\nas opposed to an explicit user choice. When true, the system-probe binary is not used as a\nfallback if system-probe-lite is unavailable — the container falls back to sleep infinity\ninstead, to avoid unexpected resource usage on older agent images.\nThis field is managed by the operator and should not be set by users.",
2597+
"type": "boolean"
2598+
},
25952599
"networkStats": {
25962600
"additionalProperties": false,
25972601
"description": "Enables the service discovery network stats collection.\nDefault: true",

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2488,6 +2488,14 @@ spec:
24882488
Enables the service discovery check.
24892489
Default: false
24902490
type: boolean
2491+
enabledByDefault:
2492+
description: |-
2493+
EnabledByDefault is set by the operator when it enables this feature via default configuration,
2494+
as opposed to an explicit user choice. When true, the system-probe binary is not used as a
2495+
fallback if system-probe-lite is unavailable — the container falls back to sleep infinity
2496+
instead, to avoid unexpected resource usage on older agent images.
2497+
This field is managed by the operator and should not be set by users.
2498+
type: boolean
24912499
networkStats:
24922500
description: |-
24932501
Enables the service discovery network stats collection.
@@ -10959,6 +10967,14 @@ spec:
1095910967
Enables the service discovery check.
1096010968
Default: false
1096110969
type: boolean
10970+
enabledByDefault:
10971+
description: |-
10972+
EnabledByDefault is set by the operator when it enables this feature via default configuration,
10973+
as opposed to an explicit user choice. When true, the system-probe binary is not used as a
10974+
fallback if system-probe-lite is unavailable — the container falls back to sleep infinity
10975+
instead, to avoid unexpected resource usage on older agent images.
10976+
This field is managed by the operator and should not be set by users.
10977+
type: boolean
1096210978
networkStats:
1096310979
description: |-
1096410980
Enables the service discovery network stats collection.

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2588,6 +2588,10 @@
25882588
"description": "Enables the service discovery check.\nDefault: false",
25892589
"type": "boolean"
25902590
},
2591+
"enabledByDefault": {
2592+
"description": "EnabledByDefault is set by the operator when it enables this feature via default configuration,\nas opposed to an explicit user choice. When true, the system-probe binary is not used as a\nfallback if system-probe-lite is unavailable — the container falls back to sleep infinity\ninstead, to avoid unexpected resource usage on older agent images.\nThis field is managed by the operator and should not be set by users.",
2593+
"type": "boolean"
2594+
},
25912595
"networkStats": {
25922596
"additionalProperties": false,
25932597
"description": "Enables the service discovery network stats collection.\nDefault: true",
@@ -10807,6 +10811,10 @@
1080710811
"description": "Enables the service discovery check.\nDefault: false",
1080810812
"type": "boolean"
1080910813
},
10814+
"enabledByDefault": {
10815+
"description": "EnabledByDefault is set by the operator when it enables this feature via default configuration,\nas opposed to an explicit user choice. When true, the system-probe binary is not used as a\nfallback if system-probe-lite is unavailable — the container falls back to sleep infinity\ninstead, to avoid unexpected resource usage on older agent images.\nThis field is managed by the operator and should not be set by users.",
10816+
"type": "boolean"
10817+
},
1081010818
"networkStats": {
1081110819
"additionalProperties": false,
1081210820
"description": "Enables the service discovery network stats collection.\nDefault: true",

docs/configuration.v2alpha1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ spec:
200200
| features.sbom.host.analyzers | To use for SBOM collection. |
201201
| features.sbom.host.enabled | Enable this option to activate SBOM collection. Default: false |
202202
| features.serviceDiscovery.enabled | Enables the service discovery check. Default: false |
203+
| features.serviceDiscovery.enabledByDefault | EnabledByDefault is set by the operator when it enables this feature via default configuration, as opposed to an explicit user choice. When true, the system-probe binary is not used as a fallback if system-probe-lite is unavailable — the container falls back to sleep infinity instead, to avoid unexpected resource usage on older agent images. This field is managed by the operator and should not be set by users. |
203204
| features.serviceDiscovery.networkStats.enabled | Enables the Service Discovery Network Stats feature. Default: true |
204205
| features.tcpQueueLength.enabled | Enables the TCP queue length eBPF-based check. Default: false |
205206
| features.usm.enabled | Enables Universal Service Monitoring. Default: false |

docs/configuration_public.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,9 @@ spec:
384384
`features.serviceDiscovery.enabled`
385385
: Enables the service discovery check. Default: false
386386

387+
`features.serviceDiscovery.enabledByDefault`
388+
: EnabledByDefault is set by the operator when it enables this feature via default configuration, as opposed to an explicit user choice. When true, the system-probe binary is not used as a fallback if system-probe-lite is unavailable — the container falls back to sleep infinity instead, to avoid unexpected resource usage on older agent images. This field is managed by the operator and should not be set by users.
389+
387390
`features.serviceDiscovery.networkStats.enabled`
388391
: Enables the Service Discovery Network Stats feature. Default: true
389392

0 commit comments

Comments
 (0)