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 {
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";
});