Skip to content

Commit 223733c

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

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

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"),

0 commit comments

Comments
 (0)