Skip to content

Commit

Permalink
add grafana, otel-collector and tempo to helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
momentmaker committed Feb 5, 2024
1 parent 4018b82 commit d08909f
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 45 deletions.
9 changes: 6 additions & 3 deletions charts/chainlink-cluster/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ dependencies:
version: 5.14.0
- name: opentelemetry-collector
repository: https://open-telemetry.github.io/opentelemetry-helm-charts
version: 0.78.3
version: 0.61.0
- name: tempo
repository: https://grafana.github.io/helm-charts
version: 1.7.1
digest: sha256:d269e6fcd3f41b53e19845c872a37493ff41da4e146e78bef0d6a75f388b69fa
generated: "2024-01-25T16:39:03.044229-06:00"
- name: grafana
repository: https://grafana.github.io/helm-charts
version: 7.0.0
digest: sha256:38d02d516e4d03b48134516df9d97ded9e7ca3c489f2fd42d424866da83989c2
generated: "2024-02-05T15:56:07.875357-06:00"
8 changes: 6 additions & 2 deletions charts/chainlink-cluster/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
apiVersion: v2
name: chainlink-cluster
description: Chainlink nodes cluster
version: 0.2.0
version: 0.3.0
appVersion: "2.6.0"
dependencies:
- name: mockserver
version: "5.14.0"
repository: "https://www.mock-server.com"
condition: mockserver.enabled
- name: opentelemetry-collector
version: "0.78.3"
version: "0.61.0"
repository: "https://open-telemetry.github.io/opentelemetry-helm-charts"
condition: opentelemetry-collector.enabled
- name: tempo
version: "1.7.1"
repository: "https://grafana.github.io/helm-charts"
condition: tempo.enabled
- name: grafana
version: "7.0.0"
repository: "https://grafana.github.io/helm-charts"
condition: grafana.enabled
118 changes: 78 additions & 40 deletions charts/chainlink-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,50 +183,88 @@ runner:
opentelemetry-collector:
enabled: true
mode: deployment
receivers:
otlp:
protocols:
grpc:
endpoint: "0.0.0.0:4317"
http:
endpoint: "0.0.0.0:3100"
exporters:
file:
path: /tracing/trace-data.json
otlp:
endpoint: tempo:4317
tls:
insecure: true
service:
telemetry:
logs:
level: "debug"
pipelines:
traces:
receivers: [otlp]
exporters: [file,otlp]
tempo:
enabled: true
server:
http_listen_port: 3200
distributor:
image:
repository: otel/opentelemetry-collector
tag: 0.61.0
command:
name: otelcol
extraVolumes:
- name: trace-data
emptyDir: {}
extraVolumeMounts:
- name: trace-data
mountPath: /tracing
config:
receivers:
otlp:
protocols:
http:
grpc:
ingester:
max_block_duration: 5m # cut the headblock when this much time passes. this is being set for demo purposes and should probably be left alone normally
compactor:
compaction:
block_retention: 1h # overall Tempo trace retention. set for demo purposes
storage:
trace:
backend: local # backend configuration to use
wal:
path: /tmp/tempo/wal # where to store the the wal locally
local:
path: /tmp/tempo/blocks
endpoint: "0.0.0.0:4317"
http:
endpoint: "0.0.0.0:3100"
exporters:
file:
path: /tracing/trace-data.json
otlp:
endpoint: tempo:4317
tls:
insecure: true
service:
telemetry:
logs:
level: "debug"
pipelines:
traces:
receivers: [otlp]
exporters: [file,otlp]

tempo:
enabled: true
image:
tag: "1.7.1"
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

grafana:
enabled: true
image:
tag: 7.3.0
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Tempo
type: tempo
access: proxy
orgId: 1
url: http://tempo:3200
basicAuth: false
isDefault: true
version: 1
editable: false
uid: tempo
jsonData:
httpMethod: GET
serviceMap:
datasourceUid: prometheus
env:
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin"
GF_AUTH_DISABLE_LOGIN_FORM: "true"
GF_FEATURE_TOGGLES_ENABLE: "traceqlEditor"

ingress:
enabled: false
Expand Down

0 comments on commit d08909f

Please sign in to comment.