Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion src/digma/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
# version: this Chart version
version: 1.0.256
version: 1.0.255
name: digma
description: A Helm chart containing Digma's services and dbs
home: https://github.com/digma-ai/digma
Expand Down
5 changes: 5 additions & 0 deletions src/digma/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,9 @@ tolerations:
{{- define "nodeSelector" -}}
nodeSelector:
{{- toYaml .Values.nodeSelector | nindent 8 }}
{{- end -}}

{{- define "env.otlpSamplerProbability" -}}
- name: OtlpSamplerProbability
value: {{ quote .Values.digmaSelfDiagnosis.otlpSamplerProbability }}
{{- end -}}
11 changes: 7 additions & 4 deletions src/digma/templates/digma-collector-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ spec:
- containerPort: 5048
- containerPort: 5049
- containerPort: 5050
{{- range .Values.digmaCollectorApi.additionalPorts | default (list) }}
- containerPort: {{ .port }}
{{- end }}
env:
{{- include "env.isCentralize" . | nindent 8 }}
{{- include "env.licenseKey" . | nindent 8 }}
Expand All @@ -57,7 +60,7 @@ spec:
{{ if .Values.debug }}
{{- include "env.elasticsearch" . | nindent 8 }}
{{ end }}
- name: OtlpSamplerProbability
value: {{ .Values.digmaSelfDiagnosis.otlpSamplerProbability| quote}}
- name: BACKEND_DEPLOYMENT_TYPE
value: {{ .Values.deploymentType | quote}}
{{- range .Values.digmaCollectorApi.envs }}
- name: {{ .name }}
value: {{ .value | quote }}
{{- end }}
2 changes: 1 addition & 1 deletion src/digma/templates/grafana.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if eq .Values.digmaSelfDiagnosis.otlpExporterEndpoint "local" }}
{{- if .Values.grafana.enabled }}

apiVersion: v1
kind: ConfigMap
Expand Down
10 changes: 9 additions & 1 deletion src/digma/templates/internal-network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,15 @@ spec:
- name: grpc
protocol: TCP
port: 5050

{{- if .Values.digmaCollectorApi.additionalPorts }}
{{- range .Values.digmaCollectorApi.additionalPorts }}
- name: {{ .name }}
port: {{ .port }}
protocol: {{ .protocol }}
{{- end }}
{{- else }}
# No additional ports specified
{{- end }}
---

apiVersion: v1
Expand Down
2 changes: 2 additions & 0 deletions src/digma/templates/otel-collector-df.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ data:
{{- else }}
otlp:
endpoint: {{.Values.digmaSelfDiagnosis.otlpExporterEndpoint}}
tls:
insecure: true
{{- end }}

service:
Expand Down
6 changes: 3 additions & 3 deletions src/digma/templates/prometheus.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if eq .Values.digmaSelfDiagnosis.otlpExporterEndpoint "local" }}

{{- if .Values.prometheus.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -13,7 +12,8 @@ data:
scrape_configs:
- job_name: otel-collector
static_configs:
- targets: [{{ printf "%s-otel-collector:7777" (.Release.Name)}}]
- targets:
- {{ tpl .Values.prometheus.target . }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set "%s-otel-collector:7777" as the default for Values.prometheus.target

---

apiVersion: apps/v1
Expand Down
Loading