# ============================================================================= # WOOO TECH - Momo Pro System # Grafana Datasources Configuration # ============================================================================= apiVersion: 1 datasources: # --------------------------------------------------------------------------- # Prometheus - 指標數據源(主要) # --------------------------------------------------------------------------- - name: Prometheus uid: prometheus type: prometheus access: proxy url: http://prometheus:9090 isDefault: true editable: false jsonData: timeInterval: "15s" queryTimeout: "60s" httpMethod: "POST" # --------------------------------------------------------------------------- # Loki - 日誌數據源 # --------------------------------------------------------------------------- - name: Loki uid: loki type: loki access: proxy url: http://loki:3100 isDefault: false editable: false jsonData: maxLines: 1000 derivedFields: - datasourceUid: prometheus matcherRegex: "traceID=(\\w+)" name: TraceID url: "$${__value.raw}"