Skip to content

Commit

Permalink
coroot v1.0.0-rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
apetruhin committed Apr 11, 2024
1 parent bde3dfc commit 31a3a4b
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 86 deletions.
8 changes: 2 additions & 6 deletions charts/coroot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: coroot
description: A monitoring and troubleshooting tool for microservice architectures.
type: application
version: 0.9.1
appVersion: "1.0.0-rc1"
version: 0.10.0
appVersion: "1.0.0-rc2"
dependencies:
- name: prometheus
repository: https://prometheus-community.github.io/helm-charts
Expand All @@ -17,7 +17,3 @@ dependencies:
version: 3.1.*
repository: https://charts.bitnami.com/bitnami
condition: clickhouse.enabled
- name: opentelemetry-collector
version: 0.52.*
repository: https://open-telemetry.github.io/opentelemetry-helm-charts
condition: opentelemetry-collector.enabled
12 changes: 2 additions & 10 deletions charts/coroot/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,9 @@ spec:
name: {{ include "coroot.clickhouse.fullname" . }}
key: "admin-password"
- name: BOOTSTRAP_CLICKHOUSE_USER
value: {{ index .Values "opentelemetry-collector" "config" "exporters" "clickhouse" "username" }}
value: {{ .Values.corootCE.bootstrap.clickhouse.username }}
- name: BOOTSTRAP_CLICKHOUSE_DATABASE
value: {{ index .Values "opentelemetry-collector" "config" "exporters" "clickhouse" "database" }}
{{- end }}
{{- if and .Values.corootCE.bootstrap.otel.traces.enabled }}
- name: BOOTSTRAP_CLICKHOUSE_TRACES_TABLE
value: {{ index .Values "opentelemetry-collector" "config" "exporters" "clickhouse" "traces_table_name" }}
{{- end }}
{{- if and .Values.corootCE.bootstrap.otel.logs.enabled }}
- name: BOOTSTRAP_CLICKHOUSE_LOGS_TABLE
value: {{ index .Values "opentelemetry-collector" "config" "exporters" "clickhouse" "logs_table_name" }}
value: {{ .Values.corootCE.bootstrap.clickhouse.database }}
{{- end }}
{{- with .Values.corootCE.env }}
{{- . | toYaml | nindent 12 }}
Expand Down
22 changes: 22 additions & 0 deletions charts/coroot/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,26 @@ spec:
name: http
selector:
{{- include "coroot.selectorLabels" . | nindent 4 }}

---

apiVersion: v1
kind: Service
metadata:
name: coroot-opentelemetry-collector
{{- with .Values.corootCE.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "coroot.labels" . | nindent 4 }}
spec:
type: {{ .Values.corootCE.service.type }}
ports:
- port: 4318
targetPort: http
protocol: TCP
name: otel-http
selector:
{{- include "coroot.selectorLabels" . | nindent 4 }}
{{- end -}}
79 changes: 9 additions & 70 deletions charts/coroot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ corootCE:
enabled: true
bootstrap:
refreshInterval: 15s
otel:
traces:
enabled: true
logs:
enabled: true
clickhouse:
database: default
username: default
replicas: 1
strategy:
type: Recreate
Expand Down Expand Up @@ -103,20 +101,14 @@ corootClusterAgent:
fullnameOverride: ""
config:
listen: :8080
clickhouse:
address: coroot-clickhouse:9000
database: default
auth:
user: default
password: ${CLICKHOUSE_PASSWORD}
coroot_url: http://coroot:8080
profiles:
ttl_days: 7
scrape:
interval: 1m
image:
repository: ghcr.io/coroot/coroot-cluster-agent
pullPolicy: IfNotPresent
tag: "0.1.0"
tag: "0.2.0"
imagePullSecrets: []
podAnnotations: {}
podSecurityContext: {}
Expand All @@ -130,7 +122,6 @@ corootClusterAgent:
affinity: {}
env: []


prometheus:
enabled: true
alertmanager:
Expand Down Expand Up @@ -396,7 +387,6 @@ prometheus:
target_label: __metrics_path__
replacement: /api/v1/nodes/$1/proxy/metrics/cadvisor


existingPrometheus:
enabled: false
service:
Expand All @@ -405,12 +395,12 @@ existingPrometheus:
serviceNamespace: default
node-agent-podmonitor:
enabled: true

node-agent:
enabled: true
tracesEndpoint: "http://coroot-opentelemetry-collector:4318/v1/traces"
logsEndpoint: "http://coroot-opentelemetry-collector:4318/v1/logs"
profilesEndpoint: "http://coroot-cluster-agent:8080/profiles"
tracesEndpoint: "http://coroot:8080/v1/traces"
logsEndpoint: "http://coroot:8080/v1/logs"
profilesEndpoint: "http://coroot:8080/v1/profiles"

clickhouse:
enabled: true
Expand All @@ -432,54 +422,3 @@ clickhouse:
<trace_log remove="1"/>
<opentelemetry_span_log remove="1"/>
</clickhouse>
opentelemetry-collector:
enabled: true
mode: deployment
extraEnvs:
- name: CLICKHOUSE_PASSWORD
valueFrom:
secretKeyRef:
name: coroot-clickhouse
key: admin-password
ports:
jaeger-compact:
enabled: false
jaeger-thrift:
enabled: false
jaeger-grpc:
enabled: false
zipkin:
enabled: false

config:
processors:
batch:
timeout: 5s
send_batch_size: 100000
exporters:
clickhouse:
endpoint: tcp://coroot-clickhouse:9000?dial_timeout=10s&compress=lz4
database: default
ttl_days: 7
username: default
password: ${env:CLICKHOUSE_PASSWORD}
logs_table_name: otel_logs
traces_table_name: otel_traces
metrics_table_name: otel_metrics
timeout: 5s
retry_on_failure:
enabled: true
initial_interval: 5s
max_interval: 30s
max_elapsed_time: 300s
service:
pipelines:
traces:
processors: [batch]
exporters: [clickhouse]
receivers: [otlp]
logs:
processors: [batch]
exporters: [clickhouse]
receivers: [otlp]

0 comments on commit 31a3a4b

Please sign in to comment.