mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
feat: enhance OpenTelemetry Collector configuration with sending queue parameters
This commit is contained in:
@@ -60,6 +60,12 @@ spec:
|
||||
{{- include "oneuptime.env.oneuptimeSecret" . | nindent 12 }}
|
||||
- name: PORT
|
||||
value: {{ $.Values.port.otelCollectorGrpc | quote }}
|
||||
- name: OPENTELEMETRY_COLLECTOR_SENDING_QUEUE_ENABLED
|
||||
value: {{ $.Values.otelCollectorSendingQueueEnabled | quote }}
|
||||
- name: OPENTELEMETRY_COLLECTOR_SENDING_QUEUE_NUM_CONSUMERS
|
||||
value: {{ $.Values.otelCollectorSendingQueueNumConsumers | quote }}
|
||||
- name: OPENTELEMETRY_COLLECTOR_SENDING_QUEUE_SIZE
|
||||
value: {{ $.Values.otelCollectorSendingQueueSize | quote }}
|
||||
ports:
|
||||
- containerPort: {{ $.Values.port.otelCollectorHttp }}
|
||||
protocol: TCP
|
||||
|
||||
@@ -409,3 +409,11 @@ readinessProbe: # Readiness probe configuration
|
||||
periodSeconds: 60
|
||||
initialDelaySeconds: 10
|
||||
timeoutSeconds: 120
|
||||
|
||||
|
||||
# OpenTelemetry Collector Configuration
|
||||
openTelemetryCollectorConfig:
|
||||
sendingQueue:
|
||||
enabled: true
|
||||
size: 1000
|
||||
numConsumers: 3
|
||||
|
||||
@@ -46,7 +46,8 @@ service:
|
||||
level: "debug"
|
||||
{{ end }}
|
||||
|
||||
{{ if not .Env.OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT }}
|
||||
{{ if not .Env.DISABLE_TELEMETRY "true"}}
|
||||
{{ if .Env.OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT }}
|
||||
service:
|
||||
telemetry:
|
||||
logs:
|
||||
@@ -62,6 +63,7 @@ service:
|
||||
headers: {{ .Env.OPENTELEMETRY_EXPORTER_OTLP_HEADERS }}
|
||||
{{ end }}
|
||||
{{ end}}
|
||||
{{ end }}
|
||||
|
||||
extensions: [ headers_setter ]
|
||||
pipelines:
|
||||
|
||||
@@ -399,6 +399,10 @@ services:
|
||||
- oneuptime
|
||||
environment:
|
||||
<<: *common-variables
|
||||
DISABLE_TELEMETRY: ${DISABLE_TELEMETRY_FOR_OTEL_COLLECTOR}
|
||||
OPENTELEMETRY_COLLECTOR_SENDING_QUEUE_ENABLED: ${OPENTELEMETRY_COLLECTOR_SENDING_QUEUE_ENABLED}
|
||||
OPENTELEMETRY_COLLECTOR_SENDING_QUEUE_SIZE: ${OPENTELEMETRY_COLLECTOR_SENDING_QUEUE_SIZE}
|
||||
OPENTELEMETRY_COLLECTOR_SENDING_QUEUE_NUM_CONSUMERS: ${OPENTELEMETRY_COLLECTOR_SENDING_QUEUE_NUM_CONSUMERS}
|
||||
restart: always
|
||||
logging:
|
||||
driver: "local"
|
||||
|
||||
Reference in New Issue
Block a user