added loki config.

Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
This commit is contained in:
Pratik Mankawde
2026-05-06 17:37:43 +01:00
parent 5ad5bacc94
commit e49c5997b7
2 changed files with 9 additions and 4 deletions

View File

@@ -21,4 +21,4 @@ datasources:
- datasourceUid: tempo
matcherRegex: "trace_id=(\\w+)"
name: TraceID
url: ""
url: "$${__value.raw}"

View File

@@ -39,15 +39,20 @@ receivers:
include: [/var/log/rippled/*/debug.log]
operators:
- type: regex_parser
regex: '^(?P<timestamp>\S+)\s+(?P<partition>\S+):(?P<severity>\S+)\s+(?:trace_id=(?P<trace_id>[a-f0-9]+)\s+span_id=(?P<span_id>[a-f0-9]+)\s+)?(?P<message>.*)$'
regex: '^(?P<timestamp>\S+\s+\S+)\s+\S+\s+(?P<partition>\S+):(?P<severity>\S+)\s+(?:trace_id=(?P<trace_id>[a-f0-9]+)\s+span_id=(?P<span_id>[a-f0-9]+)\s+)?(?P<message>.*)$'
timestamp:
parse_from: attributes.timestamp
layout: "%Y-%b-%d %H:%M:%S.%f"
layout: "%Y-%b-%d %H:%M:%S"
processors:
batch:
timeout: 1s
send_batch_size: 100
resource/logs:
attributes:
- key: service.name
value: xrpld
action: upsert
connectors:
spanmetrics:
@@ -96,5 +101,5 @@ service:
# batches entries, and exports to Loki for log-trace correlation.
logs:
receivers: [filelog]
processors: [batch]
processors: [resource/logs, batch]
exporters: [otlphttp/loki]