Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tempo operator to enable viewing traces in development environment #4075

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ resources:
- spacerequest-cleaner
- mintmaker
- tracing-workload-otel-collector
- tempo
components:
- ../../../k-components/inject-infra-deployments-repo-details
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- tempo.yaml
components:
- ../../../../k-components/deploy-to-member-cluster-merge-generator
41 changes: 41 additions & 0 deletions argo-cd-apps/base/member/infra-deployments/tempo/tempo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: tempo
spec:
generators:
- merge:
mergeKeys:
- nameNormalized
generators:
- clusters:
values:
sourceRoot: components/tracing/tempo
environment: development
clusterDir: ""
- list:
elements: []
template:
metadata:
name: tempo-{{nameNormalized}}
spec:
project: default
source:
repoURL: https://github.com/redhat-appstudio/infra-deployments.git
targetRevision: main
path: '{{values.sourceRoot}}/{{values.environment}}/{{values.clusterDir}}'
destination:
namespace: tempo-operator
server: '{{server}}'
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
retry:
limit: 50
backoff:
duration: 10s
factor: 2
maxDuration: 3m
7 changes: 6 additions & 1 deletion argo-cd-apps/overlays/development/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,9 @@ patches:
target:
kind: ApplicationSet
version: v1alpha1
name: tracing-workload-otel-collector
name: tracing-workload-otel-collector
- path: development-overlay-patch.yaml
target:
kind: ApplicationSet
version: v1alpha1
name: tempo
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ kind: ApplicationSet
metadata:
name: workspaces
$patch: delete
---
# Tempo is excluded from the production
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: tempo
$patch: delete
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ metadata:
name: gitops
$patch: delete
---

# Tempo is excluded from the staging
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: tempo
$patch: delete
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
config:
exporters:
otlphttp:
endpoint: http://tempo-tempo.tempo-operator.svc.cluster.local:4318
tls:
insecure: true
debug:
verbosity: basic
extensions:
Expand Down Expand Up @@ -42,6 +46,7 @@ config:
traces:
exporters:
- debug
- otlphttp
processors:
- memory_limiter
- attributes/collector-info
Expand Down
8 changes: 8 additions & 0 deletions components/tracing/tempo/development/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- tempo-operator.yaml
- tempo.yaml

commonAnnotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
36 changes: 36 additions & 0 deletions components/tracing/tempo/development/tempo-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
# Namespace for Grafana Tempo Operator
apiVersion: v1
kind: Namespace
metadata:
name: tempo-operator
annotations:
argocd.argoproj.io/sync-wave: "-2"
---
# Grafana Tempo Operator Group
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: tempo-operator
annotations:
argocd.argoproj.io/sync-wave: "-2"
spec:
upgradeStrategy: Default
---
# Subscription for tempo-operator
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: tempo-product
namespace: tempo-operator
annotations:
argocd.argoproj.io/sync-wave: "-1"
argocd.argoproj.io/sync-options: Replace=true
labels:
operators.coreos.com/tempo-product.tempo-operator: ""
spec:
channel: stable
installPlanApproval: Automatic
name: tempo-product
source: redhat-operators
sourceNamespace: openshift-marketplace
18 changes: 18 additions & 0 deletions components/tracing/tempo/development/tempo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: tempo.grafana.com/v1alpha1
kind: TempoMonolithic
metadata:
name: tempo
namespace: tempo-operator
annotations:
argocd.argoproj.io/sync-wave: "0"
spec:
storage:
traces:
backend: pv
size: 10Gi
jaegerui:
enabled: true
route:
enabled: true
ingress:
enabled: true
Loading