Skip to content

Commit

Permalink
fix(alloy): get config working 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjydev committed May 1, 2024
1 parent a2a5e68 commit 05b4c01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions modules/mixins/alloy/config.alloy
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions modules/mixins/ecs-agent/config.alloy
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}
Expand Down

0 comments on commit 05b4c01

Please sign in to comment.