From afb39f99a72395893a91b003ae775982c1be1173 Mon Sep 17 00:00:00 2001 From: Danijel Simeunovic Date: Fri, 20 Mar 2026 14:04:20 +0100 Subject: [PATCH] Grafana Tempo --- infra/tempo.yaml | 42 ++++++++++++++++++++++++++++++++ infra/traefik-application.yaml | 3 +++ infra/values/grafana-values.yaml | 21 ++++++++++++++++ infra/values/tempo-values.yaml | 25 +++++++++++++++++++ 4 files changed, 91 insertions(+) create mode 100644 infra/tempo.yaml create mode 100644 infra/values/tempo-values.yaml diff --git a/infra/tempo.yaml b/infra/tempo.yaml new file mode 100644 index 0000000..5b47059 --- /dev/null +++ b/infra/tempo.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: tempo + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "1" + labels: + app.kubernetes.io/name: tempo + app.kubernetes.io/part-of: monitoring + app.kubernetes.io/managed-by: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + + sources: + - repoURL: https://grafana.github.io/helm-charts + chart: tempo + targetRevision: "1.24.4" + helm: + releaseName: tempo + valueFiles: + - $values/infra/values/tempo-values.yaml + + - repoURL: git@github.com:fortedigital/sturdy-adventure.git + targetRevision: HEAD + ref: values + + destination: + server: https://kubernetes.default.svc + namespace: monitoring + + syncPolicy: + automated: + prune: true + selfHeal: true + allowEmpty: false + syncOptions: + - CreateNamespace=true + - Validate=true + - ServerSideApply=true diff --git a/infra/traefik-application.yaml b/infra/traefik-application.yaml index b2e08c1..00fb839 100644 --- a/infra/traefik-application.yaml +++ b/infra/traefik-application.yaml @@ -35,6 +35,9 @@ spec: tracing: otlp: enabled: true + grpc: + endpoint: "tempo.monitoring.svc.cluster.local:4317" + insecure: true logs: general: level: DEBUG diff --git a/infra/values/grafana-values.yaml b/infra/values/grafana-values.yaml index d7042f6..7a91c60 100644 --- a/infra/values/grafana-values.yaml +++ b/infra/values/grafana-values.yaml @@ -27,6 +27,27 @@ datasources: uid: loki url: http://loki-gateway.monitoring.svc.cluster.local access: proxy + - name: Tempo + type: tempo + uid: tempo + url: http://tempo.monitoring.svc.cluster.local:3200 + access: proxy + jsonData: + tracesToLogsV2: + datasourceUid: loki + tags: + - key: namespace + - key: pod + - key: container + tracesToMetrics: + datasourceUid: Prometheus + tags: + - key: service.name + value: service + nodeGraph: + enabled: true + serviceMap: + datasourceUid: Prometheus dashboardProviders: dashboardproviders.yaml: apiVersion: 1 diff --git a/infra/values/tempo-values.yaml b/infra/values/tempo-values.yaml new file mode 100644 index 0000000..c32fbc5 --- /dev/null +++ b/infra/values/tempo-values.yaml @@ -0,0 +1,25 @@ +tempo: + storage: + trace: + backend: local + local: + path: /var/tempo/traces + receivers: + otlp: + protocols: + grpc: + endpoint: "0.0.0.0:4317" + http: + endpoint: "0.0.0.0:4318" + +persistence: + enabled: true + size: 10Gi + +resources: + requests: + cpu: 100m + memory: 256Mi + limits: + cpu: 200m + memory: 512Mi