From 26237ba6eff79a744547f5da82e85fdb9f9f183a Mon Sep 17 00:00:00 2001 From: s0me1newithhand7s Date: Sun, 3 May 2026 15:58:59 +0300 Subject: [PATCH] kyra(NOT hardening): alloy -> opentelemetry collector Signed-off-by: s0me1newithhand7s --- kyra/services/otelc.nix | 53 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 kyra/services/otelc.nix diff --git a/kyra/services/otelc.nix b/kyra/services/otelc.nix new file mode 100644 index 0000000..74f14c9 --- /dev/null +++ b/kyra/services/otelc.nix @@ -0,0 +1,53 @@ +{lib, ...}: { + services = { + opentelemetry-collector = { + enable = true; + settings = { + receivers = { + otlp = { + protocols = { + grpc = { + endpoint = "127.0.0.1:4317"; + }; + + http = { + endpoint = "127.0.0.1:4318"; + }; + }; + }; + }; + + exporters = { + otlp = { + endpoint = "http://100.109.123.164:4317"; + tls = { + insecure = true; + }; + }; + }; + + service = { + pipelines = + lib.genAttrs [ + "traces" + "metrics" + "logs" + ] ( + _type: { + receivers = [ + "otlp" + ]; + exporters = [ + "otlp" + ]; + + processors = [ + "batch" + ]; + } + ); + }; + }; + }; + }; +}