Skip to content

Commit

Permalink
feature: install tempo-distributed helm chart (#32)
Browse files Browse the repository at this point in the history
* feature: install tempo-distributed helm chart

* chore: edit exporter endpoint for traces
  • Loading branch information
abielawa committed Jun 7, 2024
1 parent a8ddbc8 commit 2df1929
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 17 deletions.
2 changes: 1 addition & 1 deletion otel/jvm-collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
tls:
insecure: true
otlphttp/traces:
endpoint: "http://tempo.observability.svc.cluster.local:4318"
endpoint: "http://tempo-distributor:4318"
tls:
insecure: true

Expand Down
2 changes: 1 addition & 1 deletion try-me/observability/charts_values/grafana_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ datasources:
urlDisplayLabel: 'View Trace'
- name: Tempo
type: tempo
url: "http://tempo:3100"
url: "http://tempo-query-frontend:3100"
access: proxy
basicAuth: false
uid: tempo
Expand Down
108 changes: 95 additions & 13 deletions try-me/observability/charts_values/tempo_values.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
tempo:
metricsGenerator:
enabled: true
remoteWriteUrl: "http://mimir-nginx.observability/api/v1/push"
storage:
trace:
backend: s3
s3:
bucket: 'tempo-traces'
endpoint: 'loki-minio.observability:9000'
insecure: true
traces: # enable otlp and http protocol receivers in distributor configuration
otlp:
grpc:
enabled: true
http:
enabled: true
minio: # disable MinIO Helm Chart installation because it is instaled with Loki Helm Chart
enabled: false
metricsGenerator: # enable metrics generator feature
enabled: true
remoteWriteUrl: "http://mimir-nginx.observability/api/v1/push"
extraArgs:
- "-config.expand-env=true"
extraEnv:
- name: MINIO_ACCESS_KEY_ID
valueFrom:
Expand All @@ -20,5 +22,85 @@ tempo:
secretKeyRef:
name: loki-minio
key: rootPassword
minio:
enabled: false
storage: # configure storage backend for MinIO which is S3 compatible
trace:
backend: s3
s3:
bucket: 'tempo-traces'
endpoint: 'loki-minio.observability:9000'
insecure: true
secret_key: "${MINIO_ACCESS_KEY_SECRET}"
access_key: "${MINIO_ACCESS_KEY_ID}"
distributor:
replicas: 1
extraArgs:
- "-config.expand-env=true"
extraEnv:
- name: MINIO_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: loki-minio
key: rootUser
- name: MINIO_ACCESS_KEY_SECRET
valueFrom:
secretKeyRef:
name: loki-minio
key: rootPassword
compactor:
replicas: 1
extraArgs:
- "-config.expand-env=true"
extraEnv:
- name: MINIO_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: loki-minio
key: rootUser
- name: MINIO_ACCESS_KEY_SECRET
valueFrom:
secretKeyRef:
name: loki-minio
key: rootPassword
ingester:
extraArgs:
- "-config.expand-env=true"
extraEnv:
- name: MINIO_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: loki-minio
key: rootUser
- name: MINIO_ACCESS_KEY_SECRET
valueFrom:
secretKeyRef:
name: loki-minio
key: rootPassword
querier:
replicas: 1
extraArgs:
- "-config.expand-env=true"
extraEnv:
- name: MINIO_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: loki-minio
key: rootUser
- name: MINIO_ACCESS_KEY_SECRET
valueFrom:
secretKeyRef:
name: loki-minio
key: rootPassword
queryFrontend:
extraArgs:
- "-config.expand-env=true"
extraEnv:
- name: MINIO_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: loki-minio
key: rootUser
- name: MINIO_ACCESS_KEY_SECRET
valueFrom:
secretKeyRef:
name: loki-minio
key: rootPassword
4 changes: 2 additions & 2 deletions try-me/observability/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export default async () => {
if (config.installTempo) {
let bucket = new MinioBucket('tempo-traces', namespace, { dependsOn: lokiHelmChart })
new HelmRelease('tempo', {
chartName: 'tempo',
chartVersion: '1.7.2',
chartName: 'tempo-distributed',
chartVersion: '1.10.0',
chartNamespace: namespace,
chartValuesPath: './charts_values/tempo_values.yaml',
chartRepositoryUrl: 'https://grafana.github.io/helm-charts',
Expand Down

0 comments on commit 2df1929

Please sign in to comment.