@@ -162,6 +162,7 @@ func (cfgInput *OtelColConfigInput) generateReceivers() map[string]any {
162
162
func (cfgInput * OtelColConfigInput ) generateConnectors () map [string ]any {
163
163
connectors := make (map [string ]any )
164
164
maps .Copy (connectors , connector .GenerateCountConnectors ())
165
+ maps .Copy (connectors , connector .GenerateBytesConnectors ())
165
166
166
167
for _ , tenant := range cfgInput .Tenants {
167
168
// Generate routing connector for the tenant's subscription if it has any
@@ -189,6 +190,7 @@ func (cfgInput *OtelColConfigInput) generateConnectors() map[string]any {
189
190
190
191
func (cfgInput * OtelColConfigInput ) generateNamedPipelines () map [string ]* otelv1beta1.Pipeline {
191
192
const outputCountConnectorName = "count/output_metrics"
193
+ const outputBytesConnectorName = "bytes/exporter"
192
194
193
195
var namedPipelines = make (map [string ]* otelv1beta1.Pipeline )
194
196
tenants := []string {}
@@ -235,15 +237,15 @@ func (cfgInput *OtelColConfigInput) generateNamedPipelines() map[string]*otelv1b
235
237
var exporters []string
236
238
237
239
if output .Output .Spec .OTLPGRPC != nil {
238
- exporters = []string {components .GetExporterNameForOutput (output .Output ), outputCountConnectorName }
240
+ exporters = []string {components .GetExporterNameForOutput (output .Output ), outputCountConnectorName , outputBytesConnectorName }
239
241
}
240
242
241
243
if output .Output .Spec .OTLPHTTP != nil {
242
- exporters = []string {components .GetExporterNameForOutput (output .Output ), outputCountConnectorName }
244
+ exporters = []string {components .GetExporterNameForOutput (output .Output ), outputCountConnectorName , outputBytesConnectorName }
243
245
}
244
246
245
247
if output .Output .Spec .Fluentforward != nil {
246
- exporters = []string {components .GetExporterNameForOutput (output .Output ), outputCountConnectorName }
248
+ exporters = []string {components .GetExporterNameForOutput (output .Output ), outputCountConnectorName , outputBytesConnectorName }
247
249
}
248
250
if cfgInput .Debug {
249
251
exporters = append (exporters , "debug" )
0 commit comments