diff --git a/modules/mixins/alloy/config.alloy b/modules/mixins/alloy/config.alloy index ff79584..e79c2ba 100644 --- a/modules/mixins/alloy/config.alloy +++ b/modules/mixins/alloy/config.alloy @@ -15,6 +15,11 @@ otelcol.receiver.prometheus "default" { } } +// Convert OTLP data for Prometheus +otelcol.exporter.prometheus "default" { + forward_to = [prometheus.relabel.instance.receiver] +} + // Convert Loki data for OTLP otelcol.receiver.loki "default" { output { diff --git a/modules/mixins/ecs-agent/config.alloy b/modules/mixins/ecs-agent/config.alloy index 305feaf..ede3c60 100644 --- a/modules/mixins/ecs-agent/config.alloy +++ b/modules/mixins/ecs-agent/config.alloy @@ -13,8 +13,8 @@ otelcol.receiver.otlp "otlp" { http {} output { - metrics = [prometheus.relabel.instance.receiver] - logs = [otelcol.receiver.loki.default.receiver] + metrics = [otelcol.exporter.prometheus.default.input] + logs = [otelcol.exporter.otlp.gc_fwd.input] traces = [otelcol.exporter.otlp.gc_fwd.input] } }