From e5209ddee36507eaab7a56c875f7574231a8d3ce Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Wed, 30 Oct 2024 16:30:27 +0700 Subject: [PATCH] loki: fix matcher regex for tempo traces --- system/services/telemetry/loki.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system/services/telemetry/loki.nix b/system/services/telemetry/loki.nix index 7bb9072..efa4cc0 100644 --- a/system/services/telemetry/loki.nix +++ b/system/services/telemetry/loki.nix @@ -101,15 +101,15 @@ in [ ] ++ (optional config.services.tempo.enable { datasourceUid = "tempo"; - matcherRegex = ''traceID=(\\w+)''; - name = "TraceID"; + matcherRegex = ''trace_?[Ii][Dd]=(\w+)''; + name = "Log Trace"; url = "$\${__value.raw}"; urlDisplayLabel = "Trace"; }) ++ (optional config.services.tempo.enable { datasourceUid = "tempo"; - matcherRegex = ''"trace_id":"(\\w+)"''; - name = "TraceID"; + matcherRegex = ''"trace_?[Ii][Dd]":"(\w+)"''; + name = "Trace"; url = "$\${__value.raw}"; urlDisplayLabel = "Trace"; });