Skip to content

Commit

Permalink
feat: add logLevel, maxPollIntervalMs, inputBlockSize, maxBatchTimeMs (
Browse files Browse the repository at this point in the history
  • Loading branch information
patsevanton authored Aug 28, 2024
1 parent 2007bd6 commit 78de49b
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/sentry/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: sentry
description: A Helm chart for Kubernetes
type: application
version: 25.1.0
version: 25.2.0
appVersion: 24.5.1
dependencies:
- name: memcached
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ spec:
- "--processes"
- "{{ .Values.sentry.genericMetricsConsumer.concurrency }}"
{{- end }}
{{- if .Values.sentry.genericMetricsConsumer.logLevel }}
- "--log-level"
- "{{ .Values.sentry.genericMetricsConsumer.logLevel }}"
{{- end }}
{{- if .Values.sentry.genericMetricsConsumer.maxPollIntervalMs }}
- "--max-poll-interval-ms"
- "{{ .Values.sentry.genericMetricsConsumer.maxPollIntervalMs }}"
{{- end }}
{{- if .Values.sentry.genericMetricsConsumer.livenessProbe.enabled }}
livenessProbe:
exec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,18 @@ spec:
- "--processes"
- "{{ .Values.sentry.ingestConsumerEvents.concurrency }}"
{{- end }}
{{- if .Values.sentry.ingestConsumerEvents.logLevel }}
- "--log-level"
- "{{ .Values.sentry.ingestConsumerEvents.logLevel }}"
{{- end }}
{{- if .Values.sentry.ingestConsumerEvents.inputBlockSize }}
- "--input-block-size"
- "{{ .Values.sentry.ingestConsumerEvents.inputBlockSize }}"
{{- end }}
{{- if .Values.sentry.ingestConsumerEvents.maxBatchTimeMs }}
- "--max-batch-time-ms"
- "{{ .Values.sentry.ingestConsumerEvents.maxBatchTimeMs }}"
{{- end }}
{{- if .Values.sentry.ingestConsumerEvents.livenessProbe.enabled }}
livenessProbe:
exec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,18 @@ spec:
- "--processes"
- "{{ .Values.sentry.ingestConsumerTransactions.concurrency }}"
{{- end }}
{{- if .Values.sentry.ingestConsumerTransactions.logLevel }}
- "--log-level"
- "{{ .Values.sentry.ingestConsumerTransactions.logLevel }}"
{{- end }}
{{- if .Values.sentry.ingestConsumerTransactions.inputBlockSize }}
- "--input-block-size"
- "{{ .Values.sentry.ingestConsumerTransactions.inputBlockSize }}"
{{- end }}
{{- if .Values.sentry.ingestConsumerTransactions.maxBatchTimeMs }}
- "--max-batch-time-ms"
- "{{ .Values.sentry.ingestConsumerTransactions.maxBatchTimeMs }}"
{{- end }}
{{- if .Values.sentry.ingestConsumerTransactions.livenessProbe.enabled }}
livenessProbe:
exec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ spec:
- "--processes"
- "{{ .Values.sentry.metricsConsumer.concurrency }}"
{{- end }}
{{- if .Values.sentry.metricsConsumer.logLevel }}
- "--log-level"
- "{{ .Values.sentry.metricsConsumer.logLevel }}"
{{- end }}
{{- if .Values.sentry.metricsConsumer.maxPollIntervalMs }}
- "--max-poll-interval-ms"
- "{{ .Values.sentry.metricsConsumer.maxPollIntervalMs }}"
{{- end }}
{{- if .Values.sentry.metricsConsumer.livenessProbe.enabled }}
livenessProbe:
exec:
Expand Down
8 changes: 8 additions & 0 deletions charts/sentry/templates/deployment-sentry-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ spec:
- "-c"
- "{{ .Values.sentry.worker.concurrency }}"
{{- end }}
{{- if .Values.sentry.worker.logLevel }}
- "--log-level"
- "{{ .Values.sentry.worker.logLevel }}"
{{- end }}
{{- if .Values.sentry.worker.logFormat }}
- "--logformat"
- "{{ .Values.sentry.worker.logFormat }}"
{{- end }}
env:
- name: C_FORCE_ROOT
value: "true"
Expand Down
14 changes: 13 additions & 1 deletion charts/sentry/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ sentry:
nodeSelector: {}
# tolerations: []
# podLabels: []
# logLevel: "WARNING"
# logFormat: "machine"

# it's better to use prometheus adapter and scale based on
# the size of the rabbitmq queue
Expand Down Expand Up @@ -331,6 +333,9 @@ sentry:
# tolerations: []
# podLabels: []
# maxBatchSize: ""
# logLevel: "info"
# inputBlockSize: ""
# maxBatchTimeMs: ""

# it's better to use prometheus adapter and scale based on
# the size of the rabbitmq queue
Expand Down Expand Up @@ -366,6 +371,9 @@ sentry:
# tolerations: []
# podLabels: []
# maxBatchSize: ""
# logLevel: "info"
# inputBlockSize: ""
# maxBatchTimeMs: ""

# it's better to use prometheus adapter and scale based on
# the size of the rabbitmq queue
Expand Down Expand Up @@ -555,6 +563,8 @@ sentry:
# tolerations: []
# podLabels: []
# maxBatchSize: ""
# maxPollIntervalMs: ""
# logLevel: "info"

# it's better to use prometheus adapter and scale based on
# the size of the rabbitmq queue
Expand Down Expand Up @@ -588,6 +598,8 @@ sentry:
# tolerations: []
# podLabels: []
# maxBatchSize: ""
# logLevel: "info"
# maxPollIntervalMs: ""

# it's better to use prometheus adapter and scale based on
# the size of the rabbitmq queue
Expand Down Expand Up @@ -1395,7 +1407,7 @@ hooks:
enabled: true
preUpgrade: false
removeOnSuccess: true
activeDeadlineSeconds: 100
activeDeadlineSeconds: 600
shareProcessNamespace: false
dbCheck:
enabled: true
Expand Down

0 comments on commit 78de49b

Please sign in to comment.