From b5c88a8f2b5621fc76fba7f84cf69589384888c5 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 11 Jul 2025 12:16:42 +0300 Subject: Added workspace diagnostics to fix a nvim issue where it only shows diagnostics for opened buffers --- modules/eko-config.alloy | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 modules/eko-config.alloy (limited to 'modules') 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" } +} -- cgit v1.3.1