loki: fix matcher regex for tempo traces

This commit is contained in:
Tigor Hutasuhut 2024-10-30 16:30:27 +07:00
parent 67873179ce
commit e5209ddee3

View file

@ -101,15 +101,15 @@ in
[ ] [ ]
++ (optional config.services.tempo.enable { ++ (optional config.services.tempo.enable {
datasourceUid = "tempo"; datasourceUid = "tempo";
matcherRegex = ''traceID=(\\w+)''; matcherRegex = ''trace_?[Ii][Dd]=(\w+)'';
name = "TraceID"; name = "Log Trace";
url = "$\${__value.raw}"; url = "$\${__value.raw}";
urlDisplayLabel = "Trace"; urlDisplayLabel = "Trace";
}) })
++ (optional config.services.tempo.enable { ++ (optional config.services.tempo.enable {
datasourceUid = "tempo"; datasourceUid = "tempo";
matcherRegex = ''"trace_id":"(\\w+)"''; matcherRegex = ''"trace_?[Ii][Dd]":"(\w+)"'';
name = "TraceID"; name = "Trace";
url = "$\${__value.raw}"; url = "$\${__value.raw}";
urlDisplayLabel = "Trace"; urlDisplayLabel = "Trace";
}); });