Skip to content

Commit 63f5d1c

Browse files
committed
set default address for all parsed receivers
Signed-off-by: Benedikt Bongartz <[email protected]>
1 parent 8eb13f1 commit 63f5d1c

File tree

5 files changed

+42
-4
lines changed

5 files changed

+42
-4
lines changed
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: enhancement
3+
4+
# The name of the component, or a single word describing the area of concern, (e.g. collector, target allocator, auto-instrumentation, opamp, github action)
5+
component: collector
6+
7+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8+
note: set default address for all parsed receivers
9+
10+
# One or more tracking issues related to the change
11+
issues: [3126]
12+
13+
# (Optional) One or more lines of additional information to render under the primary note.
14+
# These lines will be padded with 2 spaces and then inserted directly into the document.
15+
# Use pipe (|) for multiline entries.
16+
subtext:

internal/components/receivers/helpers.go

+22
Original file line numberDiff line numberDiff line change
@@ -61,81 +61,103 @@ var (
6161
MustBuild(),
6262
components.NewMultiPortReceiverBuilder("skywalking").
6363
AddPortMapping(components.NewProtocolBuilder(components.GrpcProtocol, 11800).
64+
WithDefaultRecAddress("0.0.0.0").
6465
WithTargetPort(11800).
6566
WithAppProtocol(&components.GrpcProtocol)).
6667
AddPortMapping(components.NewProtocolBuilder(components.HttpProtocol, 12800).
68+
WithDefaultRecAddress("0.0.0.0").
6769
WithTargetPort(12800).
6870
WithAppProtocol(&components.HttpProtocol)).
6971
MustBuild(),
7072
components.NewMultiPortReceiverBuilder("jaeger").
7173
AddPortMapping(components.NewProtocolBuilder(components.GrpcProtocol, 14250).
74+
WithDefaultRecAddress("0.0.0.0").
7275
WithTargetPort(14250).
7376
WithProtocol(corev1.ProtocolTCP).
7477
WithAppProtocol(&components.GrpcProtocol)).
7578
AddPortMapping(components.NewProtocolBuilder("thrift_http", 14268).
79+
WithDefaultRecAddress("0.0.0.0").
7680
WithTargetPort(14268).
7781
WithProtocol(corev1.ProtocolTCP).
7882
WithAppProtocol(&components.HttpProtocol)).
7983
AddPortMapping(components.NewProtocolBuilder("thrift_compact", 6831).
84+
WithDefaultRecAddress("0.0.0.0").
8085
WithTargetPort(6831).
8186
WithProtocol(corev1.ProtocolUDP)).
8287
AddPortMapping(components.NewProtocolBuilder("thrift_binary", 6832).
88+
WithDefaultRecAddress("0.0.0.0").
8389
WithTargetPort(6832).
8490
WithProtocol(corev1.ProtocolUDP)).
8591
MustBuild(),
8692
components.NewMultiPortReceiverBuilder("loki").
8793
AddPortMapping(components.NewProtocolBuilder(components.GrpcProtocol, 9095).
94+
WithDefaultRecAddress("0.0.0.0").
8895
WithTargetPort(9095).
8996
WithAppProtocol(&components.GrpcProtocol)).
9097
AddPortMapping(components.NewProtocolBuilder(components.HttpProtocol, 3100).
98+
WithDefaultRecAddress("0.0.0.0").
9199
WithTargetPort(3100).
92100
WithAppProtocol(&components.HttpProtocol)).
93101
MustBuild(),
94102
components.NewSinglePortParserBuilder("awsxray", 2000).
103+
WithDefaultRecAddress("0.0.0.0").
95104
WithTargetPort(2000).
96105
WithProtocol(corev1.ProtocolUDP).
97106
MustBuild(),
98107
components.NewSinglePortParserBuilder("carbon", 2003).
108+
WithDefaultRecAddress("0.0.0.0").
99109
WithTargetPort(2003).
100110
MustBuild(),
101111
components.NewSinglePortParserBuilder("collectd", 8081).
112+
WithDefaultRecAddress("0.0.0.0").
102113
WithTargetPort(8081).
103114
MustBuild(),
104115
components.NewSinglePortParserBuilder("fluentforward", 8006).
116+
WithDefaultRecAddress("0.0.0.0").
105117
WithTargetPort(8006).
106118
MustBuild(),
107119
components.NewSinglePortParserBuilder("influxdb", 8086).
120+
WithDefaultRecAddress("0.0.0.0").
108121
WithTargetPort(8086).
109122
MustBuild(),
110123
components.NewSinglePortParserBuilder("opencensus", 55678).
111124
WithAppProtocol(nil).
125+
WithDefaultRecAddress("0.0.0.0").
112126
WithTargetPort(55678).
113127
MustBuild(),
114128
components.NewSinglePortParserBuilder("sapm", 7276).
129+
WithDefaultRecAddress("0.0.0.0").
115130
WithTargetPort(7276).
116131
MustBuild(),
117132
components.NewSinglePortParserBuilder("signalfx", 9943).
133+
WithDefaultRecAddress("0.0.0.0").
118134
WithTargetPort(9943).
119135
MustBuild(),
120136
components.NewSinglePortParserBuilder("splunk_hec", 8088).
137+
WithDefaultRecAddress("0.0.0.0").
121138
WithTargetPort(8088).
122139
MustBuild(),
123140
components.NewSinglePortParserBuilder("statsd", 8125).
141+
WithDefaultRecAddress("0.0.0.0").
124142
WithProtocol(corev1.ProtocolUDP).
125143
WithTargetPort(8125).
126144
MustBuild(),
127145
components.NewSinglePortParserBuilder("tcplog", components.UnsetPort).
146+
WithDefaultRecAddress("0.0.0.0").
128147
WithProtocol(corev1.ProtocolTCP).
129148
MustBuild(),
130149
components.NewSinglePortParserBuilder("udplog", components.UnsetPort).
150+
WithDefaultRecAddress("0.0.0.0").
131151
WithProtocol(corev1.ProtocolUDP).
132152
MustBuild(),
133153
components.NewSinglePortParserBuilder("wavefront", 2003).
154+
WithDefaultRecAddress("0.0.0.0").
134155
WithTargetPort(2003).
135156
MustBuild(),
136157
components.NewSinglePortParserBuilder("zipkin", 9411).
137158
WithAppProtocol(&components.HttpProtocol).
138159
WithProtocol(corev1.ProtocolTCP).
160+
WithDefaultRecAddress("0.0.0.0").
139161
WithTargetPort(3100).
140162
MustBuild(),
141163
NewScraperParser("prometheus"),

tests/e2e/smoke-targetallocator/00-assert.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ data:
2929
jaeger:
3030
protocols:
3131
grpc:
32-
endpoint: :14250
32+
endpoint: 0.0.0.0:14250
3333
prometheus:
3434
config:
3535
global:
@@ -52,4 +52,4 @@ data:
5252
- jaeger
5353
kind: ConfigMap
5454
metadata:
55-
name: stateful-collector-a65c7bf4
55+
name: stateful-collector-57180221

tests/e2e/statefulset-features/00-assert.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
items:
2222
- key: collector.yaml
2323
path: collector.yaml
24-
name: stateful-collector-1e082e0e
24+
name: stateful-collector-4b08af22
2525
name: otc-internal
2626
- emptyDir: {}
2727
name: testvolume

tests/e2e/statefulset-features/01-assert.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
items:
2222
- key: collector.yaml
2323
path: collector.yaml
24-
name: stateful-collector-1e082e0e
24+
name: stateful-collector-4b08af22
2525
name: otc-internal
2626
- emptyDir: {}
2727
name: testvolume

0 commit comments

Comments
 (0)