about summary refs log tree commit diff
path: root/chart
diff options
context:
space:
mode:
authorAlex Nordlund <deep.alexander@gmail.com>2022-11-13 21:05:30 +0100
committerGitHub <noreply@github.com>2022-11-13 21:05:30 +0100
commit82c663300a90f83ac2ff0f3652fd536caac2364f (patch)
tree05ba5b579965ea5fc26be606713d4e4ac3e09e6b /chart
parente62b514e958ca2bfc08944b2368c6d41417f9e8a (diff)
Helm: support statsd publishing (#20455)
* Allow statsd publishing from Helm

* Apply suggestions from code review

Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com>

Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com>
Diffstat (limited to 'chart')
-rw-r--r--chart/templates/configmap-env.yaml3
-rw-r--r--chart/values.yaml5
2 files changed, 8 insertions, 0 deletions
diff --git a/chart/templates/configmap-env.yaml b/chart/templates/configmap-env.yaml
index 00e60f315..82a6a31e4 100644
--- a/chart/templates/configmap-env.yaml
+++ b/chart/templates/configmap-env.yaml
@@ -310,3 +310,6 @@ data:
   LDAP_UID_CONVERSION_REPLACE: {{ .Values.externalAuth.ldap.uid_conversion.replace }}
   {{- end }}
   {{- end }}
+  {{- with .Values.mastodon.metrics.statsd.address }}
+  STATSD_ADDR: {{ . }}
+  {{- end }}
diff --git a/chart/values.yaml b/chart/values.yaml
index 5cee86e0e..af1c7cbfc 100644
--- a/chart/values.yaml
+++ b/chart/values.yaml
@@ -101,6 +101,11 @@ mastodon:
   web:
     port: 3000
 
+  metrics:
+    statsd:
+      # Enable statsd publishing via STATSD_ADDR environment variable
+      address: ""
+
 ingress:
   enabled: true
   annotations: