Grafana Tempo

This commit is contained in:
2026-03-20 14:04:20 +01:00
parent e4f8f2c071
commit afb39f99a7
4 changed files with 91 additions and 0 deletions

42
infra/tempo.yaml Normal file
View File

@@ -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

View File

@@ -35,6 +35,9 @@ spec:
tracing:
otlp:
enabled: true
grpc:
endpoint: "tempo.monitoring.svc.cluster.local:4317"
insecure: true
logs:
general:
level: DEBUG

View File

@@ -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

View File

@@ -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