Skip to content

Commit

Permalink
feat(confgen): add bytes connector to test fixture
Browse files Browse the repository at this point in the history
Signed-off-by: Szilard Parrag <[email protected]>
  • Loading branch information
OverOrion committed Jan 10, 2025
1 parent 2fc066b commit 987a4d1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
connectors:
bytes/exporter:
logs:
otelcol_exporter_sent_log_records_bytes:
description:
Bytes of log records successfully sent to destination
attributes:
- key: exporter
count/output_metrics:
logs:
telemetry_controller_output_log_count:
Expand Down Expand Up @@ -356,6 +363,7 @@ service:
exporters:
- otlphttp/collector_loki-test-output
- count/output_metrics
- bytes/exporter
processors:
- memory_limiter
- attributes/exporter_name_loki-test-output
Expand All @@ -365,6 +373,7 @@ service:
exporters:
- otlp/collector_otlp-test-output
- count/output_metrics
- bytes/exporter
processors:
- memory_limiter
- attributes/exporter_name_otlp-test-output
Expand All @@ -375,6 +384,7 @@ service:
exporters:
- otlp/collector_otlp-test-output-2
- count/output_metrics
- bytes/exporter
processors:
- memory_limiter
- attributes/exporter_name_otlp-test-output-2
Expand All @@ -384,6 +394,7 @@ service:
exporters:
- fluentforwardexporter/collector_fluentforward-test-output
- count/output_metrics
- bytes/exporter
processors:
- memory_limiter
- attributes/exporter_name_fluentforward-test-output
Expand All @@ -393,6 +404,7 @@ service:
exporters:
- otlp/collector_otlp-test-output-2
- count/output_metrics
- bytes/exporter
processors:
- memory_limiter
- attributes/exporter_name_otlp-test-output-2
Expand Down Expand Up @@ -453,6 +465,15 @@ service:
- attributes/metricattributes
receivers:
- count/output_metrics
metrics/output_bytes:
exporters:
- prometheus/message_metrics_exporter
processors:
- memory_limiter
- deltatocumulative
- attributes/metricattributes
receivers:
- bytes/exporter
metrics/tenant:
exporters:
- prometheus/message_metrics_exporter
Expand Down
10 changes: 10 additions & 0 deletions internal/controller/telemetry/otel_conf_gen/otel_conf_gen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,11 @@ func TestOtelColConfigInput_generateNamedPipelines(t *testing.T) {
[]string{"deltatocumulative", "attributes/metricattributes"},
[]string{"prometheus/message_metrics_exporter"},
),
"metrics/output_bytes": pipeline.GeneratePipeline(
[]string{"bytes/exporter"},
[]string{"deltatocumulative", "attributes/metricattributes"},
[]string{"prometheus/message_metrics_exporter"},
),
"metrics/tenant": pipeline.GeneratePipeline(
[]string{"count/tenant_metrics"},
[]string{"deltatocumulative", "attributes/metricattributes"},
Expand Down Expand Up @@ -690,6 +695,11 @@ func TestOtelColConfigInput_generateNamedPipelines(t *testing.T) {
Processors: []string{"deltatocumulative", "attributes/metricattributes"},
Exporters: []string{"prometheus/message_metrics_exporter"},
},
"metrics/output_bytes": {
Receivers: []string{"bytes/exporter"},
Processors: []string{"deltatocumulative", "attributes/metricattributes"},
Exporters: []string{"prometheus/message_metrics_exporter"},
},
"metrics/tenant": {
Receivers: []string{"count/tenant_metrics"},
Processors: []string{"deltatocumulative", "attributes/metricattributes"},
Expand Down

0 comments on commit 987a4d1

Please sign in to comment.