better logging

This commit is contained in:
2025-03-18 16:09:46 -06:00
parent e3e4175f51
commit de80418c00
10 changed files with 430 additions and 45 deletions

14
docker/alloy.conf Normal file
View File

@@ -0,0 +1,14 @@
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"
}
}