Skip to content

Commit cdd0905

Browse files
authored
feat: add more values for sentry (#1765)
1 parent f741466 commit cdd0905

File tree

2 files changed

+28
-16
lines changed

2 files changed

+28
-16
lines changed

charts/sentry/templates/sentry/_helper-sentry.tpl

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -351,27 +351,27 @@ sentry.conf.py: |-
351351
# This is needed to prevent https://git.io/fj7Lw
352352
"uwsgi-socket": None,
353353
# Keep this between 15s-75s as that's what Relay supports
354-
"http-keepalive": {{ .Values.config.web.httpKeepalive }},
355-
"http-chunked-input": True,
354+
"http-keepalive": {{ .Values.config.web.httpKeepalive | int }},
355+
"http-chunked-input": {{ .Values.config.web.httpChunkedInput | ternary "True" "False" }},
356356
# the number of web workers
357-
'workers': 3,
357+
'workers': {{ .Values.config.web.workers | int }},
358358
# Turn off memory reporting
359-
"memory-report": False,
359+
"memory-report": {{ .Values.config.web.memoryReport | ternary "True" "False" }},
360360
# Some stuff so uwsgi will cycle workers sensibly
361-
'max-requests': {{ .Values.config.web.maxRequests }},
362-
'max-requests-delta': {{ .Values.config.web.maxRequestsDelta }},
363-
'max-worker-lifetime': {{ .Values.config.web.maxWorkerLifetime }},
361+
'max-requests': {{ .Values.config.web.maxRequests | int }},
362+
'max-requests-delta': {{ .Values.config.web.maxRequestsDelta | int }},
363+
'max-worker-lifetime': {{ .Values.config.web.maxWorkerLifetime | int }},
364364
# Duplicate options from sentry default just so we don't get
365365
# bit by sentry changing a default value that we depend on.
366-
'thunder-lock': True,
367-
'log-x-forwarded-for': False,
368-
'buffer-size': 32768,
369-
'limit-post': 209715200,
370-
'disable-logging': True,
371-
'reload-on-rss': 600,
372-
'ignore-sigpipe': True,
373-
'ignore-write-errors': True,
374-
'disable-write-exception': True,
366+
'thunder-lock': {{ .Values.config.web.thunderLock | ternary "True" "False" }},
367+
'log-x-forwarded-for': {{ .Values.config.web.logXForwardedFor | ternary "True" "False" }},
368+
'buffer-size': {{ .Values.config.web.bufferSize | int }},
369+
'limit-post': {{ .Values.config.web.limitPost | int }},
370+
'disable-logging': {{ .Values.config.web.disableLogging | ternary "True" "False" }},
371+
'reload-on-rss': {{ .Values.config.web.reloadOnRss | int }},
372+
'ignore-sigpipe': {{ .Values.config.web.ignoreSignpipe | ternary "True" "False" }},
373+
'ignore-write-errors': {{ .Values.config.web.ignoreWriteErrors | ternary "True" "False" }},
374+
'disable-write-exception': {{ .Values.config.web.disableWriteException | ternary "True" "False" }},
375375
}
376376

377377
###########

charts/sentry/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,9 +2114,21 @@ config:
21142114
# No YAML relay config given
21152115
web:
21162116
httpKeepalive: 15
2117+
httpChunkedInput: true
2118+
workers: 3
2119+
memoryReport: false
21172120
maxRequests: 100000
21182121
maxRequestsDelta: 500
21192122
maxWorkerLifetime: 86400
2123+
thunderLock: true
2124+
logXForwardedFor: false
2125+
bufferSize: 32768
2126+
limitPost: 209715200
2127+
disableLogging: true
2128+
reloadOnRss: 600
2129+
ignoreSignpipe: true
2130+
ignoreWriteErrors: true
2131+
disableWriteException: true
21202132

21212133
clickhouse:
21222134
enabled: true

0 commit comments

Comments
 (0)