diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-07-11 12:16:42 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-07-11 12:16:42 +0300 |
| commit | b5c88a8f2b5621fc76fba7f84cf69589384888c5 (patch) | |
| tree | e9263b89c9135c1ecc9de480325be8cf203412af /modules/eko-config.alloy | |
| parent | 2a7e91ca27774c4b67d5dd30d6539f19bc89397f (diff) | |
Added workspace diagnostics to fix a nvim issue where it only shows
diagnostics for opened buffers
Diffstat (limited to 'modules/eko-config.alloy')
| -rw-r--r-- | modules/eko-config.alloy | 19 |
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" } +} |
