mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-26 17:26:59 -05:00
feat: Integrate Grafana Loki
This commit is contained in:
45
grafana-datasources.yml
Normal file
45
grafana-datasources.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
# Grafana Data Source Provisioning
|
||||
# Auto-configures Loki as a data source in Grafana
|
||||
|
||||
apiVersion: 1
|
||||
|
||||
datasources:
|
||||
- name: Loki
|
||||
type: loki
|
||||
access: proxy
|
||||
url: http://loki:3100
|
||||
isDefault: true
|
||||
editable: true
|
||||
jsonData:
|
||||
maxLines: 1000
|
||||
derivedFields:
|
||||
# Extract trace ID from logs for distributed tracing
|
||||
- datasourceUid: tempo
|
||||
matcherRegex: "traceId=(\\w+)"
|
||||
name: TraceID
|
||||
url: "$${__value.raw}"
|
||||
# Extract request ID for correlation
|
||||
- matcherRegex: "requestId=(\\w+)"
|
||||
name: RequestID
|
||||
url: "$${__value.raw}"
|
||||
version: 1
|
||||
|
||||
# Optional: Add Prometheus if you have metrics
|
||||
# - name: Prometheus
|
||||
# type: prometheus
|
||||
# access: proxy
|
||||
# url: http://prometheus:9090
|
||||
# isDefault: false
|
||||
# editable: true
|
||||
# jsonData:
|
||||
# timeInterval: 15s
|
||||
# version: 1
|
||||
|
||||
# Optional: Add Tempo for distributed tracing
|
||||
# - name: Tempo
|
||||
# type: tempo
|
||||
# access: proxy
|
||||
# url: http://tempo:3200
|
||||
# isDefault: false
|
||||
# editable: true
|
||||
# version: 1
|
||||
Reference in New Issue
Block a user