mirror of
https://github.com/mastodon/chart
synced 2025-03-15 13:31:51 +00:00
Add OpenTelemetry flags for deployments (#147)
This commit is contained in:
parent
c437b0ad15
commit
889dd88562
|
@ -15,7 +15,7 @@ type: application
|
||||||
# This is the chart version. This version number should be incremented each time
|
# This is the chart version. This version number should be incremented each time
|
||||||
# you make changes to the chart and its templates, including the app version.
|
# you make changes to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 5.2.0
|
version: 5.3.0
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
|
|
@ -186,6 +186,12 @@ spec:
|
||||||
name: {{ $context.Values.mastodon.cacheBuster.authToken.existingSecret }}
|
name: {{ $context.Values.mastodon.cacheBuster.authToken.existingSecret }}
|
||||||
key: password
|
key: password
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if or $context.Values.mastodon.sidekiq.otel.enabled (and $context.Values.mastodon.otel.enabled (ne $context.Values.mastodon.sidekiq.otel.enabled false)) }}
|
||||||
|
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
||||||
|
value: {{ coalesce $context.Values.mastodon.sidekiq.otel.endpointUri $context.Values.mastodon.otel.endpointUri }}
|
||||||
|
- name: OTEL_SERVICE_NAME_PREFIX
|
||||||
|
value: {{ coalesce $context.Values.mastodon.sidekiq.otel.namePrefix $context.Values.mastodon.otel.namePrefix }}
|
||||||
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- if (not $context.Values.mastodon.s3.enabled) }}
|
{{- if (not $context.Values.mastodon.s3.enabled) }}
|
||||||
- name: assets
|
- name: assets
|
||||||
|
|
|
@ -176,6 +176,12 @@ spec:
|
||||||
name: {{ .Values.mastodon.cacheBuster.authToken.existingSecret }}
|
name: {{ .Values.mastodon.cacheBuster.authToken.existingSecret }}
|
||||||
key: password
|
key: password
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if or .Values.mastodon.web.otel.enabled (and .Values.mastodon.otel.enabled (ne .Values.mastodon.web.otel.enabled false)) }}
|
||||||
|
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
||||||
|
value: {{ coalesce .Values.mastodon.web.otel.endpointUri .Values.mastodon.otel.endpointUri }}
|
||||||
|
- name: OTEL_SERVICE_NAME_PREFIX
|
||||||
|
value: {{ coalesce .Values.mastodon.web.otel.namePrefix .Values.mastodon.otel.namePrefix }}
|
||||||
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- if (not .Values.mastodon.s3.enabled) }}
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
- name: assets
|
- name: assets
|
||||||
|
|
20
values.yaml
20
values.yaml
|
@ -164,6 +164,13 @@ mastodon:
|
||||||
# requests:
|
# requests:
|
||||||
# cpu: 250m
|
# cpu: 250m
|
||||||
# memory: 512Mi
|
# memory: 512Mi
|
||||||
|
|
||||||
|
# Open Telemetry configuration for sidekiq pods. Overrides global settings.
|
||||||
|
otel:
|
||||||
|
enabled:
|
||||||
|
exporterUri:
|
||||||
|
namePrefix:
|
||||||
|
|
||||||
workers:
|
workers:
|
||||||
- name: all-queues
|
- name: all-queues
|
||||||
# -- Number of threads / parallel sidekiq jobs that are executed per Pod
|
# -- Number of threads / parallel sidekiq jobs that are executed per Pod
|
||||||
|
@ -333,6 +340,12 @@ mastodon:
|
||||||
name:
|
name:
|
||||||
key:
|
key:
|
||||||
|
|
||||||
|
# Open Telemetry configuration for web pods. Overrides global settings.
|
||||||
|
otel:
|
||||||
|
enabled:
|
||||||
|
exporterUri:
|
||||||
|
namePrefix:
|
||||||
|
|
||||||
# HTTP cache buster configuration.
|
# HTTP cache buster configuration.
|
||||||
# See the documentation for more information about this feature:
|
# See the documentation for more information about this feature:
|
||||||
# https://docs.joinmastodon.org/admin/config/#http-cache-buster
|
# https://docs.joinmastodon.org/admin/config/#http-cache-buster
|
||||||
|
@ -355,6 +368,13 @@ mastodon:
|
||||||
enabled: false
|
enabled: false
|
||||||
port: 9102
|
port: 9102
|
||||||
|
|
||||||
|
# Open Telemetry configuration for all deployments. Component-specific
|
||||||
|
# configuration will override these values.
|
||||||
|
otel:
|
||||||
|
enabled: false
|
||||||
|
exporterUri:
|
||||||
|
namePrefix: mastodon
|
||||||
|
|
||||||
# Sets the PREPARED_STATEMENTS environment variable: https://docs.joinmastodon.org/admin/config/#prepared_statements
|
# Sets the PREPARED_STATEMENTS environment variable: https://docs.joinmastodon.org/admin/config/#prepared_statements
|
||||||
preparedStatements: true
|
preparedStatements: true
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user