Skip to content

Commit

Permalink
feat(charts): setup traces support (#12681)
Browse files Browse the repository at this point in the history
  • Loading branch information
Atrax1 authored Apr 4, 2024
1 parent c7ecdd0 commit 324ca5b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 25 deletions.
11 changes: 10 additions & 1 deletion charts/chainlink-cluster/devspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ deployments:
runAsGroup: 999
web_port: 6688
p2p_port: 6690
# extraEnvVars:
# "CL_MEDIAN_CMD": "chainlink-feeds"
nodes:
- name: node-1
image: ${runtime.images.app}
Expand Down Expand Up @@ -161,7 +163,14 @@ deployments:
# [WebServer.TLS]
# HTTPSPort = 0
# or use overridesToml to override some part of configuration
# overridesToml: |
# overridesToml: |
# Enable Tracing
# [Tracing]
# Enabled = true
# SamplingRatio = 1.0
# CollectorTarget = 'app-opentelemetry-collector:4317'
# TLSCertPath = ''
# Mode = 'unencrypted'
- name: node-2
image: ${runtime.images.app}
- name: node-3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ spec:
value: postgresql://postgres:verylongdatabasepassword@{{ $.Release.Name }}-db-{{ $cfg.name }}/chainlink?sslmode=disable
- name: CL_DEV
value: "false"
{{- range $name, $value := $.Values.chainlink.extraEnvVars }}
- name: "{{ $name }}"
value: "{{ $value }}"
{{- end }}
volumeMounts:
- name: {{ $.Release.Name }}-{{ $cfg.name }}-cm
mountPath: /etc/node-secrets-volume/
Expand Down
32 changes: 8 additions & 24 deletions charts/chainlink-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,12 @@ opentelemetry-collector:
otlp:
protocols:
grpc:
endpoint: "0.0.0.0:4317"
endpoint: ${env:MY_POD_IP}:4317
http:
endpoint: "0.0.0.0:3100"
endpoint: ${env:MY_POD_IP}:4318
exporters:
file:
path: /tracing/trace-data.json
otlp:
endpoint: tempo:4317
endpoint: app-tempo:4317
tls:
insecure: true
service:
Expand All @@ -202,27 +200,13 @@ opentelemetry-collector:
pipelines:
traces:
receivers: [otlp]
exporters: [file, otlp]
exporters: [otlp]

tempo:
enabled: true
image:
tag: "1.7.2"
server:
http_listen_port: 3200
# default storage path: /var/tempo/
readinessProbe:
httpGet:
path: /ready
port: 3200
initialDelaySeconds: 10
periodSeconds: 5
livenessProbe:
httpGet:
path: /ready
port: 3200
initialDelaySeconds: 20
periodSeconds: 10
securityContext:
runAsNonRoot: true
runAsUser: 10001
Expand All @@ -239,7 +223,7 @@ tempo:
grafana:
enabled: true
image:
tag: 7.3.2
tag: 10.4.1
rbac:
namespaced: true
datasources:
Expand All @@ -250,7 +234,7 @@ grafana:
type: tempo
access: proxy
orgId: 1
url: http://tempo:3200
url: http://app-tempo:3100
basicAuth: false
isDefault: true
version: 1
Expand All @@ -264,7 +248,7 @@ grafana:
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin"
GF_AUTH_DISABLE_LOGIN_FORM: "true"
GF_FEATURE_TOGGLES_ENABLE: "traceqlEditor"
GF_FEATURE_TOGGLES_ENABLE: "traceqlEditor tempoSearch tempoServiceGraph"

ingress:
enabled: false
Expand Down Expand Up @@ -430,7 +414,7 @@ networkPolicies:
app: tempo
ports:
- protocol: TCP
port: 3100
port: 4317

# Configure the default network policy.
networkPolicyDefault:
Expand Down

0 comments on commit 324ca5b

Please sign in to comment.