DealDocumentScreening/deploy/observability/grafana/provisioning/datasources/datasources.yaml
2026-09-03 01:14:56 +03:00

28 lines
703 B
YAML

apiVersion: 1
datasources:
- name: Loki
type: loki
access: proxy
url: http://loki:3100
isDefault: false
editable: true
jsonData:
maxLines: 1000
derivedFields:
- name: correlation_id
matcherRegex: '"correlation_id":\s*"([^"]+)"'
url: /explore?left={"datasource":"Loki","queries":[{"expr":"{service=\"$service\"} |= \"$__value\""}]}
urlDisplayLabel: 'Trace by correlation_id'
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus:9090
isDefault: true
editable: true
jsonData:
timeInterval: 15s
httpMethod: POST
manageAlerts: false
prometheusType: Prometheus