63 lines
1.6 KiB
YAML
63 lines
1.6 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: grafana-datasources
|
|
namespace: observability
|
|
data:
|
|
datasources.yaml: |
|
|
apiVersion: 1
|
|
datasources:
|
|
# Prometheus
|
|
- name: Prometheus
|
|
type: prometheus
|
|
access: proxy
|
|
url: http://prometheus.observability.svc.cluster.local:9090
|
|
isDefault: true
|
|
editable: true
|
|
jsonData:
|
|
timeInterval: 15s
|
|
queryTimeout: 60s
|
|
httpMethod: POST
|
|
|
|
# Loki
|
|
- name: Loki
|
|
type: loki
|
|
access: proxy
|
|
url: http://loki.observability.svc.cluster.local:3100
|
|
editable: true
|
|
jsonData:
|
|
maxLines: 1000
|
|
derivedFields:
|
|
- datasourceUid: tempo
|
|
matcherRegex: "traceID=(\\w+)"
|
|
name: TraceID
|
|
url: "$${__value.raw}"
|
|
|
|
# Tempo
|
|
- name: Tempo
|
|
type: tempo
|
|
access: proxy
|
|
url: http://tempo.observability.svc.cluster.local:3200
|
|
editable: true
|
|
uid: tempo
|
|
jsonData:
|
|
tracesToLogsV2:
|
|
datasourceUid: loki
|
|
spanStartTimeShift: -1h
|
|
spanEndTimeShift: 1h
|
|
filterByTraceID: true
|
|
filterBySpanID: false
|
|
customQuery: false
|
|
tracesToMetrics:
|
|
datasourceUid: prometheus
|
|
spanStartTimeShift: -1h
|
|
spanEndTimeShift: 1h
|
|
serviceMap:
|
|
datasourceUid: prometheus
|
|
nodeGraph:
|
|
enabled: true
|
|
search:
|
|
hide: false
|
|
lokiSearch:
|
|
datasourceUid: loki
|