From 02bdb89a6276de5e42266e45dd3b71f774af97fe Mon Sep 17 00:00:00 2001 From: s0me1newithhand7s Date: Sun, 3 May 2026 15:52:16 +0300 Subject: [PATCH] kyra(NOT hardening): alloy is going to hell. Signed-off-by: s0me1newithhand7s --- kyra/services/alloy.nix | 99 ----------------------------------------- 1 file changed, 99 deletions(-) delete mode 100644 kyra/services/alloy.nix diff --git a/kyra/services/alloy.nix b/kyra/services/alloy.nix deleted file mode 100644 index d863d04..0000000 --- a/kyra/services/alloy.nix +++ /dev/null @@ -1,99 +0,0 @@ -{ - config, - pkgs, - ... -}: { - services = { - alloy = { - enable = true; - - configPath = pkgs.writeText "alloy-config.alloy" '' - loki.source.journal "system" { - max_age = "24h" - forward_to = [loki.process.production.receiver] - - labels = { - host = "${config.networking.hostName}", - job = "journalctl", - } - } - - loki.process "production" { - forward_to = [loki.write.viola.receiver] - - stage.labels { - values = { - unit = "__journal_systemd_unit__", - } - } - - stage.label_keep { - values = ["unit"] - } - - stage.match { - selector = `{unit=~"(traefik|sing-box|crowdsec|alloy|netbird).*\\.service"}` - action = "drop" - } - } - - prometheus.exporter.unix "node" { - enable_collectors = [ - "cpu", "diskstats", "filesystem", - "loadavg", "meminfo", "netdev", - "time", "uname", - ] - } - - prometheus.scrape "node" { - targets = prometheus.exporter.unix.node.targets - forward_to = [prometheus.remote_write.viola.receiver] - scrape_interval = "30s" - job_name = "node" - } - - prometheus.scrape "alloy" { - targets = [{"__address__" = "127.0.0.1:12345"}] - - forward_to = [prometheus.remote_write.viola.receiver] - job_name = "alloy" - } - - loki.write "viola" { - endpoint { - url = "http://100.109.123.164:3100/loki/api/v1/push" - } - } - - prometheus.remote_write "viola" { - endpoint { - url = "http://100.109.123.164:9009/api/v1/push" - } - } - - otelcol.receiver.otlp "default" { - 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 = "http://100.109.123.164:4317" - tls { - insecure = true - } - } - } - ''; - }; - }; -}