28 lines
703 B
YAML
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
|