summaryrefslogtreecommitdiff
path: root/modules/eko-config.alloy
diff options
context:
space:
mode:
Diffstat (limited to 'modules/eko-config.alloy')
-rw-r--r--modules/eko-config.alloy19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/eko-config.alloy b/modules/eko-config.alloy
new file mode 100644
index 0000000..b77786a
--- /dev/null
+++ b/modules/eko-config.alloy
@@ -0,0 +1,19 @@
+local.file_match "eko_logs" {
+ path_targets = [
+ { __path__ = "/home/kyren/projects/eko/logs/*.log" },
+ ]
+ sync_period = "3s"
+}
+
+loki.source.file "eko_tail" {
+ targets = local.file_match.eko_logs.targets
+ forward_to = [loki.write.eko.receiver]
+ tail_from_end = true
+}
+
+loki.write "eko" {
+ endpoint {
+ url = "http://localhost:3100/loki/api/v1/push"
+ }
+ external_labels = { app = "eko-server" }
+}