summaryrefslogtreecommitdiff
path: root/f3s/tempo/datasource-configmap.yaml
blob: 0fb3fab36e6fad01c256ad154c2818d82b894f28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Grafana Datasource ConfigMap for Tempo
# Auto-discovered by Grafana sidecar via label grafana_datasource: "1"
# Enables traces-to-logs and traces-to-metrics correlation

apiVersion: v1
kind: ConfigMap
metadata:
  name: tempo-grafana-datasource
  namespace: monitoring
  labels:
    grafana_datasource: "1"  # Must be string "1" for auto-discovery
data:
  tempo-datasource.yaml: |-
    apiVersion: 1
    datasources:
    - name: Tempo
      type: tempo
      uid: tempo
      url: http://tempo.monitoring.svc.cluster.local:3200
      access: proxy
      isDefault: false
      editable: true
      jsonData:
        httpMethod: GET
        tracesToLogsV2:
          datasourceUid: loki
          spanStartTimeShift: -1h
          spanEndTimeShift: 1h
          filterByTraceID: false
          filterBySpanID: false
          tags:
            - cluster
            - namespace
            - pod
            - app
        tracesToMetrics:
          datasourceUid: prometheus
        serviceMap:
          datasourceUid: prometheus
        nodeGraph:
          enabled: true
        search:
          hide: false
        lokiSearch:
          datasourceUid: loki