37 lines
635 B
Plaintext
37 lines
635 B
Plaintext
local.file_match "tmplogs" {
|
|
path_targets = [{"__path__" = "/tmp/alloy-logs/*.log"}]
|
|
}
|
|
|
|
loki.source.file "local_files" {
|
|
targets = local.file_match.tmplogs.targets
|
|
forward_to = [loki.write.local_loki.receiver]
|
|
}
|
|
|
|
loki.write "local_loki" {
|
|
endpoint {
|
|
url = "http://loki:3100/loki/api/v1/push"
|
|
}
|
|
}
|
|
|
|
otelcol.receiver.otlp "otlp_receiver" {
|
|
grpc {
|
|
endpoint = "0.0.0.0:4317"
|
|
}
|
|
http {
|
|
endpoint = "0.0.0.0:4318"
|
|
}
|
|
|
|
output {
|
|
traces = [otelcol.exporter.otlp.tempo.input,]
|
|
}
|
|
}
|
|
|
|
otelcol.exporter.otlp "tempo" {
|
|
client {
|
|
endpoint = "tempo:4317"
|
|
tls {
|
|
insecure = true
|
|
}
|
|
}
|
|
}
|