Skip to content

Commit c96db5a

Browse files
songy23levan-m
andauthored
[OTAGENT-512] Add more configs and examples to otel agent gateway (#2490)
* Add more configs in otel agent gateway * Update feature gates docs * review comments --------- Co-authored-by: levan-m <[email protected]>
1 parent dfeb5ee commit c96db5a

19 files changed

+379
-28
lines changed

api/datadoghq/v2alpha1/datadogagent_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,11 @@ type OtelAgentGatewayFeatureConfig struct {
10451045
// +optional
10461046
// +listType=atomic
10471047
Ports []*corev1.ContainerPort `json:"ports,omitempty"`
1048+
1049+
// FeatureGates are the feature gates to pass to the OTel collector as a comma-separated list.
1050+
// Example: "component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest"
1051+
// +optional
1052+
FeatureGates *string `json:"featureGates,omitempty"`
10481053
}
10491054

10501055
// ControlPlaneMonitoringFeatureConfig contains the configuration for the control plane monitoring.

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: 7 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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,6 +2019,11 @@ spec:
20192019
Enabled enables the OTel Agent Gateway.
20202020
Default: false
20212021
type: boolean
2022+
featureGates:
2023+
description: |-
2024+
FeatureGates are the feature gates to pass to the OTel collector as a comma-separated list.
2025+
Example: "component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest"
2026+
type: string
20222027
ports:
20232028
description: |-
20242029
Ports contains the ports that the OTel Collector is listening on.
@@ -10013,6 +10018,11 @@ spec:
1001310018
Enabled enables the OTel Agent Gateway.
1001410019
Default: false
1001510020
type: boolean
10021+
featureGates:
10022+
description: |-
10023+
FeatureGates are the feature gates to pass to the OTel collector as a comma-separated list.
10024+
Example: "component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest"
10025+
type: string
1001610026
ports:
1001710027
description: |-
1001810028
Ports contains the ports that the OTel Collector is listening on.

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,6 +2111,10 @@
21112111
"description": "Enabled enables the OTel Agent Gateway.\nDefault: false",
21122112
"type": "boolean"
21132113
},
2114+
"featureGates": {
2115+
"description": "FeatureGates are the feature gates to pass to the OTel collector as a comma-separated list.\nExample: \"component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest\"",
2116+
"type": "string"
2117+
},
21142118
"ports": {
21152119
"description": "Ports contains the ports that the OTel Collector is listening on.\nDefaults: otel-grpc:4317 / otel-http:4318.",
21162120
"items": {
@@ -9966,6 +9970,10 @@
99669970
"description": "Enabled enables the OTel Agent Gateway.\nDefault: false",
99679971
"type": "boolean"
99689972
},
9973+
"featureGates": {
9974+
"description": "FeatureGates are the feature gates to pass to the OTel collector as a comma-separated list.\nExample: \"component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest\"",
9975+
"type": "string"
9976+
},
99699977
"ports": {
99709978
"description": "Ports contains the ports that the OTel Collector is listening on.\nDefaults: otel-grpc:4317 / otel-http:4318.",
99719979
"items": {

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,6 +2019,11 @@ spec:
20192019
Enabled enables the OTel Agent Gateway.
20202020
Default: false
20212021
type: boolean
2022+
featureGates:
2023+
description: |-
2024+
FeatureGates are the feature gates to pass to the OTel collector as a comma-separated list.
2025+
Example: "component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest"
2026+
type: string
20222027
ports:
20232028
description: |-
20242029
Ports contains the ports that the OTel Collector is listening on.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,6 +2115,10 @@
21152115
"description": "Enabled enables the OTel Agent Gateway.\nDefault: false",
21162116
"type": "boolean"
21172117
},
2118+
"featureGates": {
2119+
"description": "FeatureGates are the feature gates to pass to the OTel collector as a comma-separated list.\nExample: \"component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest\"",
2120+
"type": "string"
2121+
},
21182122
"ports": {
21192123
"description": "Ports contains the ports that the OTel Collector is listening on.\nDefaults: otel-grpc:4317 / otel-http:4318.",
21202124
"items": {

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,6 +2019,11 @@ spec:
20192019
Enabled enables the OTel Agent Gateway.
20202020
Default: false
20212021
type: boolean
2022+
featureGates:
2023+
description: |-
2024+
FeatureGates are the feature gates to pass to the OTel collector as a comma-separated list.
2025+
Example: "component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest"
2026+
type: string
20222027
ports:
20232028
description: |-
20242029
Ports contains the ports that the OTel Collector is listening on.
@@ -10063,6 +10068,11 @@ spec:
1006310068
Enabled enables the OTel Agent Gateway.
1006410069
Default: false
1006510070
type: boolean
10071+
featureGates:
10072+
description: |-
10073+
FeatureGates are the feature gates to pass to the OTel collector as a comma-separated list.
10074+
Example: "component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest"
10075+
type: string
1006610076
ports:
1006710077
description: |-
1006810078
Ports contains the ports that the OTel Collector is listening on.

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,6 +2111,10 @@
21112111
"description": "Enabled enables the OTel Agent Gateway.\nDefault: false",
21122112
"type": "boolean"
21132113
},
2114+
"featureGates": {
2115+
"description": "FeatureGates are the feature gates to pass to the OTel collector as a comma-separated list.\nExample: \"component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest\"",
2116+
"type": "string"
2117+
},
21142118
"ports": {
21152119
"description": "Ports contains the ports that the OTel Collector is listening on.\nDefaults: otel-grpc:4317 / otel-http:4318.",
21162120
"items": {
@@ -10031,6 +10035,10 @@
1003110035
"description": "Enabled enables the OTel Agent Gateway.\nDefault: false",
1003210036
"type": "boolean"
1003310037
},
10038+
"featureGates": {
10039+
"description": "FeatureGates are the feature gates to pass to the OTel collector as a comma-separated list.\nExample: \"component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest\"",
10040+
"type": "string"
10041+
},
1003410042
"ports": {
1003510043
"description": "Ports contains the ports that the OTel Collector is listening on.\nDefaults: otel-grpc:4317 / otel-http:4318.",
1003610044
"items": {

docs/configuration.v2alpha1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ spec:
161161
| features.otelAgentGateway.conf.configMap.items | Maps a ConfigMap data `key` to a file `path` mount. |
162162
| features.otelAgentGateway.conf.configMap.name | Is the name of the ConfigMap. |
163163
| features.otelAgentGateway.enabled | Enables the OTel Agent Gateway. Default: false |
164+
| features.otelAgentGateway.featureGates | FeatureGates are the feature gates to pass to the OTel collector as a comma-separated list. Example: "component.UseLocalHostAsDefaultHost,connector.datadogconnector.NativeIngest" |
164165
| features.otelAgentGateway.ports | Contains the ports that the OTel Collector is listening on. Defaults: otel-grpc:4317 / otel-http:4318. |
165166
| features.otelCollector.conf.configData | ConfigData corresponds to the configuration file content. |
166167
| features.otelCollector.conf.configMap.items | Maps a ConfigMap data `key` to a file `path` mount. |

0 commit comments

Comments
 (0)